'Removes the row which primary key equals the given id.'

def delete(self, id, commit=True):

    if isinstance(id, (list, tuple)):
        id = FilterChain(*id)
    q = ('delete    from    `%s`    where    %s' % (self.name, (((not isinstance(id, (Filter, FilterChain))) and cmp(self.primary_key, id, '=', self.db.escape)) or id.SQL(escape=self.db.escape))))
    self.db.execute(q, commit)
