implemented delete_action.