English 中文(简体)
OrientDB Tutorial

OrientDB Database Commands

OrientDB Record Commands

OrientDB Class Commands

OrientDB Cluster Commands

OrientDB Property Commands

OrientDB Vertex Commands

OrientDB Edge Commands

OrientDB Advanced Concepts

OrientDB Interfaces

OrientDB Useful Resources

Selected Reading

OrientDB - Drop Property
  • 时间:2024-10-18

OrientDB - Drop Property


Previous Page Next Page  

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 
Advertisements