Help Center > > Developer Guide> SQL Reference> SQL Syntax> DROP NODE

DROP NODE

Updated at: Mar 13, 2020 GMT+08:00

Function

DROP NODE deletes a node.

Precautions

CREATE NODE is the internal interface encapsulated in gs_om. You are not advised to use this interface, because doing so affects the cluster.

Syntax

1
DROP NODE [ IF EXISTS ] nodename [WITH ( cnnodename [, ... ] )];

Parameter Description

IF EXISTS

Sends a notice instead of an error if the specified node does not exist.

nodename

Specifies the name of the node to be deleted.

Value range: An existing node name.

cnnodename

Specifies the CN name. If it is specified, DROP NODE will be executed on both the connected CN and the specified CN. If it is not specified, DN deletion must be performed on all CNs, and CN deletion must be performed on all CNs except the CN to be deleted.

Value range: An existing CN node name.

Helpful Links

CREATE NODE, ALTER NODE

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel