code: def remove_user(user):
      
      def processor(action, argument):
          ActionUsers.query_by_action(action, argument=argument).filter(
              ActionUsers.user_id == user.id
          ).delete(synchronize_session=False)
      return processor
docs: Remove a action for a user.