def delete(self):
if self.instance is None:<EOL><INDENT>raise CQLEngineException("<STR_LIT>")<EOL><DEDENT>ds = DeleteStatement(self.column_family_name, timestamp=self._timestamp)<EOL>for name, col in self.model._primary_keys.items():<EOL><INDENT>if (not col.partition_key) and (getattr(self.instance, name) is None): continue<EOL>ds.add_where_clause(WhereClause(<EOL>col.db_field_name,<EOL>EqualsOperator(),<EOL>col.to_database(getattr(self.instance, name))<EOL>))<EOL><DEDENT>self._execute(ds)<EOL>
Deletes one instance