Delete the invalid branch