code: def remove_cron(self, client, event):
          
          for index, cron in enumerate(self.crons):
              if cron.event == event:
                  _log.info("De-registering cron '%s'.", event)
                  # Yes, we're modifying the list we're iterating over, but
                  # we immediate stop iterating so it's okay.
                  self.crons.pop(index)
                  break
          return True
docs: Remove a cron entry by event name.