Attorney General Letitia James has sent cease-and-desist letters to two at-home rape kit companies, demanding that they stop advertising and selling their products because of misleading marketing.

James Wednesday sent the letters to MeToo Kits Company, which hasn’t begun selling yet, and Preserve Group, which already has kits available on Amazon.com for $29.95, James’ office announced.

The products lead consumers to believe they forensic-grade and could be used as evidence in court — when they cannot, according to James, who added that the at-home-kits could deter victims from seeking professional help from the state, which offers free, court-admissible testing.

“Proper medical attention and accurate evidence collection are of critical importance to supporting survivors,” James said in a statement. “I am deeply concerned about companies selling kits that deter individuals from seeking professional care and purport to collect evidence without knowing whether the evidence will be admissible in court.

“We must ensure that all survivors of sexual assault are not misled and that justice is served.”

James’ letters said that if the companies don’t comply with the order to stop advertising and selling to New Yorkers they could bring further legal action against them.

MeToo kit came under fire last week by legal and sexual assault experts who voiced similar concerns. And last month the Michigan Attorney General also sent a cease-and-desist letter to MeToo Kits for allegedly violating the state’s Consumer Protection Act.

MeToo Kit founder Madison Campbell told The Post at the time the company was willing to work with the NY and Michigan AG offices to make sure the product will hold up in court.

“We’re looking for allies and partners to help us fine-tune this technology and to ensure that no survivor’s evidence is left uncaptured,” Campbell said at the time.

MeToo Kits and Protection Group did not immediately return requests for comment.