The ruling Telugu Desam Party (TDP) in Andhra Pradesh, an NDA ally, today formally decided to quit the NDA coalition government, days after two of its ministers quit the Narendra Modi government protesting for Special Category Status to Andhra Pradesh.