One problem I am facing in this "divorce" is that he is asking me for the source code I wrote while working on my PhD. I don't want to give this to him as I intend to make it publicly available on my own terms, when I have the time to tidy it up, document it, and perhaps package it all up in a nice, user-friendly application.
After a divorce, it is still desirable to maintain a "good" relationship. The academic world is very small.
You may let him know that you need some time to tidy it up etc.
However, you may tidy it into two versions... depending on his behavior.
More importantly, while your "spouse" is waiting for your source code, he is likely nice to you "for the time being".
However, endintears0 may not be in this forum anymore.