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 - Truncate Cluster
  • 时间:2024-12-27

OrientDB - Truncate Cluster


Previous Page Next Page  

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.
Advertisements