'Deletes the contents of a query'

def delete(self):

    partition_keys = set((x.db_field_name for x in self.model._partition_keys.values()))
    if (partition_keys - set((c.field for c in self._where))):
        raise QueryException('The    partition    key    must    be    defined    on    delete    queries')
    dq = DeleteStatement(self.column_family_name, where=self._where, timestamp=self._timestamp, conditionals=self._conditional, if_exists=self._if_exists)
    self._execute(dq)
