FILE – In this April 10, 2009, file photo, Correctional Officer Jose Sandoval inspects one of the more than 2,000 cell phones confiscated from inmates at California State Prison, Solano in Vacaville, Calif. Judges in California and South Carolina have ordered cellphone carriers to shut down nearly 200 contraband phones used by inmates in state prisons to coordinate drug deals, gang operations and even murders. California’s corrections chief tells The Associated Press on Monday, July 23, 2018, that it’s the first time prison officials obtained warrants requiring a mass shutdown of contraband phones. (AP Photo/Rich Pedroncelli, File)

SACRAMENTO, Calif. (AP) — Judges in California and South Carolina have ordered cellphone carriers to disable nearly 200 contraband cellphones used by inmates to orchestrate crimes behind and outside prison walls, the most sweeping order of its kind ever won by corrections officials.

It’s an important victory for prison officials who have been frustrated by their inability to stop the flow of smuggled phones that are used to coordinate drug deals, gang operations and killings. Even murderous cult leader Charles Manson, who died in November, obtained phones and used them to communicate with followers outside prison.

The warrant essentially orders carriers to “turn these phones into bricks,” California Corrections Secretary Scott Kernan told The Associated Press on Monday. The phones will be shut down over the next week or two, he said.

Kernan expects other states will follow the lead of South Carolina and California and ask judges to approve broad shutdowns. He said the ruling is a big step forward in addressing the intractable and related issue of drugs and cellphones in prisons.

Last February, federal prosecutors said two inmates used smuggled cellphones to run a violent, drug-dealing street gang from inside California’s super-maximum-security Pelican Bay State Prison. And South Carolina officials blamed a prison riot that killed seven inmates in April on a turf war between gangs over territory, money and contraband items such as drugs and cellphones.

The wireless industry has long been able to remotely disable cellphone if they are lost or stolen. But the industry has said it needs a court order before it can shut down the devices at the request of the government.