code: def cli(obj, ids, query, filters, tags):
      
      client = obj['client']
      if ids:
          total = len(ids)
      else:
          if query:
              query = [('q', query)]
          else:
              query = build_query(filters)
          total, _, _ = client.get_count(query)
          ids = [a.id for a in client.get_alerts(query)]
  
      with click.progressbar(ids, label='Untagging {} alerts'.format(total)) as bar:
          for id in bar:
              client.untag_alert(id, tags)
docs: Remove tags from alerts.