commit before deletion