OrientDB - Drop Class



The Drop Class command removes a class from the schema. It is important to pay attention and maintain a consistent schema. For example, avoid to remove classes that are super-classes of others. The associated cluster won't be deleted.

The following statement is the basic syntax of Drop Class command.

DROP CLASS <class> 

Drop a class with the class name.

Example

Try the following query to Drop a class Employee.

Orientdb> DROP CLASS Employee

If the above query is executed successfully, you will get the following output.

Class dropped successfully
Advertisements