Work with your public defender. You can only expunge a record if it was dismissed by the court or the prosecutor or you were acquitted at trial. It will be imperative that you resolve this case and that you have no other criminal history or cases which you pled to or were found guilty of. Since your case is in New York you should consult a NY lawyer who can give you statutory requirements there for expungement or sealing of records. Good Luck!!