CM resigns