OrientDB Manual

SQL - TRUNCATE CLASS

The Truncate Class command deletes the records of all the clusters defined as part of the class. By default every class has one cluster associated with the same name. This command acts at lower level then SQL Delete Command.

Syntax

TRUNCATE CLASS <class-name>

Where:

  • class-name is the name of the class

Examples

Remove all the record of class "Profile":

TRUNCATE CLASS Profile

See also SQL Delete Command and SQL Truncate Cluster Command. To create a new class use the Create Class command.

To know more about other SQL commands look at SQL commands.

This is a command of the Orient console. To know all the commands go to Console-Commands.