All the 83 Samajwadi Party ministers in the Mulayam Singh Yadav government in Uttar Pradesh resigned on Wednesday to give the chief minister a free hand to downsize the government.