code: def delete_all_alerts_for(self, trigger):
          
          assert trigger is not None
          assert isinstance(trigger.id, str), "Value must be a string"
          status, _ = self.http_client.delete(
              ALERTS_URI % trigger.id,
              params={'appid': self.API_key},
              headers={'Content-Type': 'application/json'})
docs: Deletes all of the alert that were fired for the specified Trigger
          :param trigger: the trigger whose alerts are to be cleared
          :type trigger: `pyowm.alertapi30.trigger.Trigger`
          :return: `None` if deletion is successful, an exception otherwise