code: public Object execute(final Map<Object, Object> iArgs) {
      if (fieldName == null)
        throw new OCommandExecutionException("Cannot execute the command because it has not yet been parsed");
  
      final ODatabaseRecord database = getDatabase();
      final OClassImpl sourceClass = (OClassImpl) database.getMetadata().getSchema().getClass(className);
      if (sourceClass == null)
        throw new OCommandExecutionException("Source class '" + className + "' not found");
  
      final List<OIndex<?>> indexes = relatedIndexes(fieldName);
      if (!indexes.isEmpty()) {
        if (force) {
          dropRelatedIndexes(indexes);
        } else {
          final StringBuilder indexNames = new StringBuilder();
  
          boolean first = true;
          for (final OIndex<?> index : sourceClass.getClassInvolvedIndexes(fieldName)) {
            if (!first) {
              indexNames.append(", ");
            } else {
              first = false;
            }
            indexNames.append(index.getName());
          }
  
          throw new OCommandExecutionException("Property used in indexes (" + indexNames.toString()
              + "). Please drop these indexes before removing property or use FORCE parameter.");
        }
      }
  
      // REMOVE THE PROPERTY
      sourceClass.dropPropertyInternal(fieldName);
      sourceClass.saveInternal();
  
      return null;
    }
docs: Execute the CREATE PROPERTY.