if (!cls.getBaseClasses().isEmpty())
throw new OSchemaException("Class " + className
+ " cannot be dropped because it has sub classes. Remove the dependencies before trying to drop it again");
final ODatabaseRecordInternal db = getDatabase();
final OStorage storage = db.getStorage();
final StringBuilder cmd = new StringBuilder("drop class ");
cmd.append(className);
if (isDistributedCommand()) {