throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup. It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");
Object proxy = entity;
Object pk = metaClass.fetchId(entity);
MetaIdField idField = metaClass.getIdField();
byte[] rowKey = idField.convertIdToNonVirtKey(pk);
byte[] virtKey = idField.formVirtRowKey(rowKey);
DboTableMeta metaDbo = metaClass.getMetaDbo();
if(!metaClass.hasIndexedField(entity)) {
session.remove(metaDbo, virtKey);