Deletes operation from database when it finishes