code: def delete_sql(table, filter):
      '''
      >>> delete_sql('tbl', {'foo': 10, 'bar': 'baz'})
      ('DELETE FROM tbl WHERE bar=$1 AND foo=$2', ['baz', 10])
      '''
      keys, values = _split_dict(filter)
      where = _pairs(keys)
      sql = 'DELETE FROM {} WHERE {}'.format(table, where)
      return sql, valuef delete_sql(table, filter):
      '''
      >>> delete_sql('tbl', {'foo': 10, 'bar': 'baz'})
      ('DELETE FROM tbl WHERE bar=$1 AND foo=$2', ['baz', 10])
      '''
      keys, values = _split_dict(filter)
      where = _pairs(keys)
      sql = 'DELETE FROM {} WHERE {}'.format(table, where)
      return sql, values
docs: >>> delete_sql('tbl', {'foo': 10, 'bar': 'baz'})
      ('DELETE FROM tbl WHERE bar=$1 AND foo=$2', ['baz', 10])