Sao Paulo: The head of Google Brazil, Fabio Jose Silva Coelho, was detained after he committed the crime of “disobedience” by not removing two YouTube videos that “slander, insult and defame” Campo Grande candidate Alcides Bernal.

However, he will be released after he agrees in writing to appear in court, federal police said in a statement said.

The videos accuse the candidate of “instigating abortion, drunkenness, physical injury of a minor, illicit enrichment, and contempt as well as prejudice against the underprivileged,” according to the indictment.

The tribunal, in the southwestern state of Mato Grosso do Sul, also asked Google to block YouTube in the town of Campo Grande, or the entire state, for 24 hours.

The first round of municipal elections in more than 5,000 Brazilian cities is scheduled for October 7.

On Tuesday, a Sao Paulo court gave Google 10 days to remove from YouTube any video containing scenes from the “Innocence of Muslims,” an anti-Islam film that has sparked violent protests.