code: def sqldelete(table, where):
      
      validate_name(table)
      (whereclause, wherevalues) = sqlwhere(where)
      sql = "delete from {}".format(table)
      if whereclause:
          sql += " where " + whereclause
      return (sql, wherevalues)
docs: Generates SQL delete from ... where ...
  
      >>> sqldelete('t', {'id': 5})
      ('delete from t where id=%s', [5])