code: def remove_global():
      
      def processor(action, argument):
          ActionUsers.query_by_action(action, argument=argument).filter(
              ActionUsers.user_id.is_(None)
          ).delete(synchronize_session=False)
      return processor
docs: Remove global action rule.