update the delete operation