Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

DROP WORKSPACE

The DROP WORKSPACE command deletes the specified cluster.

Syntax

DROP WORKSPACE [ IF EXISTS ]
    { ID '<cluster_ID>' | '<cluster_name>' }
    [ IN GROUP { ID '<group_ID>' | '<group_name>' } ]
    [ WAIT ON TERMINATED ]

Arguments

  • cluster_ID, cluster_name: ID or name of the cluster to delete.

  • group_ID, group_name: ID or name of the cluster group that contains the cluster.

Remarks

  • Specify the IF EXISTS clause to attempt the delete operation only if a cluster with the specified ID or name exists.

  • The IN GROUP clause specifies the ID or name of the cluster group that contains the cluster to delete.

  • Specify the WAIT ON TERMINATED clause to pause query execution until the cluster is in the TERMINATED state.

  • All the databases attached to a cluster are detached when the cluster is deleted (terminated).

Example

The following command deletes a cluster named examples in a cluster named s2-group:

DROP WORKSPACE IF EXISTS 'examples' IN GROUP 's2-group';

Last modified:

Was this article helpful?