code: def delete(queue, items):
      '''
      Delete an item or items from a queue
      '''
      con = _conn(queue)
      with con:
          cur = con.cursor()
          if isinstance(items, six.string_types):
              items = _quote_escape(items)
              cmd = .format(queue, items)
              log.debug('SQL Query: %s', cmd)
              cur.execute(cmd)
              return True
          if isinstance(items, list):
              items = [_quote_escape(el) for el in items]
              cmd = 'DELETE FROM {0} WHERE name = ?'.format(queue)
              log.debug('SQL Query: %s', cmd)
              newitems = []
              for item in items:
                  newitems.append((item,))
                  # we need a list of one item tuples here
              cur.executemany(cmd, newitems)
          if isinstance(items, dict):
              items = salt.utils.json.dumps(items).replace('"', "'")
              items = _quote_escape(items)
              cmd = ("""DELETE FROM {0} WHERE name = '{1}'""").format(queue, items)  # future lint: disable=blacklisted-function
              log.debug('SQL Query: %s', cmd)
              cur.execute(cmd)
              return True
          return True
docs: Delete an item or items from a queue