The Drop property command removes the property from the schema. It does not remove the property values from the record, it just change the schema.
The following statement is the basic syntax of Drop Property Command.
DROP PROPERTY <class>.<property> [FORCE]
Following are the details about the options in the above syntax.
<class> − Defines the class where the property exists.
<property> − Defines the property you want to remove.
[Force] − In case one or more indexes are defined on the property.
Example
Try the following command to remove ‘age’ property from the class ‘Customer’.
orientdb> DROP PROPERTY Customer.age
If the above command is executed successfully, you will get the following output.
Property dropped successfully