A top political opponent of Indian Prime Minister Narendra Modi quit as chief minister of the capital Delhi on Tuesday, days after being released on bail in a corruption case.