Assuming that the criminal case against you is dismissed, you will be entitled to a sealing order under Section 160.50 of the Criminal Procedure Law. I have provided a link to the statute for you to look at.
Once the criminal case has been dismissed against you, you may consider filing a malicious prosecution lawsuit against your ex. Whether it will be worth the time and money for you to do that is something that you will have to determine.
Answering this question does not create an attorney-client relationship between us. The answer given is for informational purposes only and is not a substitute for contacting an attorney licensed to practice in your jurisdiction and obtaining legal advice from such an attorney.
Dismissed cases don't get erased, they get sealed. There are certain excpetions to the sealing statute - applying for a gun permit or applying to be a police officer to name 2.
I am a former federal and State prosecutor and now handle criminal defense and personal injury/civil rights cases. Feel free to check out my web site and contact me at (212) 577-9797 or via email at Eric@RothsteinLawNY.com. I was named to the Super Lawyers list as one of the top attorneys in New York for 2012. No more than 5 percent of the lawyers in the state are selected by Super Lawyers. The above answer is for informational purposes only and not meant as legal advice.