A seven year-old Indian girl has complained to the police to have her father arrested after he failed to build a toilet in their home as promised, police said on Wednesday.

Millions of Indians do not have access to sanitation and open defecation is a problem, even in developed, industrial states.

The girl, E Hanifa Zaara, didn't want to go out in the open and won a promise from her father to build a lavatory indoors, said police officer named as A Valarmathi.

But when no toilet was built she went to the police to lodge a complaint, Mr Valarmathi said in a phone call with Reuters from the southern town of Ambur, 100km from the city of Chennai.

"The girl was adamant on having her father arrested as she felt cheated," Mr Valarmathi said.

"We then rang up her father, called him to the police station and made them shake hands and compromise."

Prime Minister Narendra Modi's government has been pushing a campaign to build 100 million toilets over five years but the drive has not covered large parts of the country.

The Times of India said the father told police he had twice asked the municipality for aid under Mr Modi's campaign, known as Clean Indian, but there had been no response.