ConsistencyLevel consistency) {
if (key == null) {
throw new KeyProblemsException(
"The parameter key to column family should be passed");
}
ClassInformation classInformations = ClassInformations.INSTACE.getClass(bean);
KeySpaceInformation keyInformation = classInformations.getKeySpace(keySpace);
Delete delete = QueryBuilder
.delete()
.all()
.from(keyInformation.getKeySpace(),
keyInformation.getColumnFamily());
FieldInformation keyField = classInformations.getKeyInformation();
if (classInformations.isComplexKey()) {
runComplexKey(delete, key, keyField.getSubFields().getFields());
} else {
delete.where(QueryBuilder.eq(keyField.getName(), key));
}