New York City’s local DNA index that stores data on individuals accused of a crime is subject to state law that prescribes its ability to test, analyze and retain that information, a state appellate court in Manhattan decided this week.

The ruling will allow a man charged with illegally possessing a gun as a teenager to ask that his DNA be expunged from the local database, despite no specific state law governing such a request, the decision said.