NEW DELHI — India’s Ministry of Information and Broadcasting on Tuesday withdrew a sweeping new order clamping down on journalists accused of spreading fake news.

The U-turn came hours after the ministry announced that reporters’ press credentials could be suspended simply for an accusation of spreading fake news.

The rules, issued by a government often deeply sensitive to media criticism, angered journalists and opposition politicians, who called it an attempt to gag the media in the run-up to national elections expected next year.

Several Indian news outlets reported that the initial order, announced late Monday night, was withdrawn on the instructions of Prime Minister Narendra Modi, who said that issues surrounding fake news should be dealt with by the Press Council of India, a semi-independent press group.

On Tuesday afternoon, the Ministry of Information and Broadcasting issued only a terse statement saying that the press release that announced the new guidelines to regulate fake news “stands withdrawn.”

Through Tuesday morning there was anger against the order.

“Make no mistake: this is a breathtaking assault on mainstream media,” Shekhar Gupta, a senior political journalist, tweeted after the new rules were announced. The order did not define fake news or make clear who could make a complaint.

It was unclear what caused the reversal, particularly with a prime minister who takes pride in being deeply involved in nearly all major decisions.