Uttar Pradesh resigns from the party