Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


search: keywords: ['java', 'ocluster', 'truncate']

OCluster - truncate()

Deletes cluster content without deleting the cluster.

Truncating Clusters

Occasionally, you may find yourself in situations where you need to remove data from the cluster without removing the cluster itself. Using this method, you can truncate the cluster, just as you would in OrientDB SQL using the TRUNCATE CLUSTER statement.

Syntax

void OCluster().truncate()