The Uttar Pradesh government has removed two senior law officers, including Additional Advocate General (AAG) Gaurav Bhatia.

Gaurav Bhatia ANI
Gaurav, son of late Virendra Bhatia, former advocate general of Uttar Pradesh, had been additional advocate general since SP came to power in 2012.
He was also the official face of the ruling Samajwadi Party on most news television channels but has apparently fallen out of favour with Chief Minister Akhilesh Yadav.
Reports suggest that the two had failed “on numerous occasions” to “properly defend” the government. However, there may be more to it than what meets the eye.

Bhatia in a TV debate ndtv
Two of the government’s empanelled officials in the Supreme Court — Mr. Bhatia and Reena Singh — have been removed from their posts, according to an order issued by Special Secretary (Law) Amar Jeet Tripathi.
Gaurav Bhatia, however, posted on his Facebook account that he was resigning from the post and thanked everyone for their support.
Also See

BJP spokesman Vijay Bahadur Pathak called the development “intriguing.”
I have resigned from the post of Addi. AG UP and resignation was sent to the Hon’ble C.M. I thank everyone for their support @yadavakhilesh
— Gaurav Bhatia (@gauravbh) March 23, 2016