delete an if