Section 23A(1) in Andhra Pradesh Municipalities Act, 1965
(1)Subject to the provisions of section 23B and 23C the Mayor or Councillor of a Municipal Corporation belonging to any political party shall cease to be such Mayor or Councillor -(a)if he has voluntarily given up his membership of such political party; or(b)if he votes or abstains from voting in such municipal Corporation contrary to any direction issued by political party to which he belongs or by any person or authority authorised by it in this behalf, without obtaining, in either case, the prior permission of such political party, person or authority and such voting or abstention has not been condoned by such political party, person or authority within fifteen days from the date of such voting or abstention.(c)if he has been expelled from such political party in accordance with the procedure established by the constitution, rules or regulations of such political party.Explanation: - For the purposes of this sub-section the Mayor or elected councillor shall be deemed to belong to the political party, if any by which he was set up as a candidate for election as such Mayor or councillor and ex-officio councillor shall be deemed to belong to the political party, if any, by which he was set up as a candidate for election as a Member of the Legislative Assembly, House of the people or the Council of States, as the case may be.