OrientDB – Truncate Cluster
The Truncate Cluster command deletes all records of a cluster.
The following statement is the basic syntax of Truncate Cluster Command.
TRUNCATE CLUSTER <cluster-name>
Where <cluster-name> is the name of the cluster.
Example
Try the following query to truncate the cluster named sales.
Orientdb {db = demo}> TRUNCATE CLUSTER Profile
If the above query is executed successfully, you will get the following output.
Cluster truncated successfully.