The New York Police Department will no longer confiscate unused condoms from suspected sex workers to be used as evidence of prostitution, ending a long-standing practice that had been criticized by civil rights groups for undermining efforts to combat AIDS and other sexually transmitted infections.

Under the new policy announced Monday, officers may continue to seize condoms as evidence in sex-trafficking and promotion of prostitution cases, but they will not use them in support of prostitution cases. Critics had said the previous policy amounted to police harassment, and noted that New York City spends more than $1 million a year to distribute free condoms.