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

DROP SERVER

Updated at: May 15, 2019 GMT+08:00

Function

DROP SERVER deletes an existing data server.

Precautions

Only the server owner can delete a server.

Syntax

DROP SERVER [ IF EXISTS ] server_name [ {CASCADE | RESTRICT} ] ;

Parameter Description

  • IF EXISTS

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

  • server_name

    Specifies the name of a server.

  • CASCADE | RESTRICT
    • CASCADE: automatically drops objects that depend on the server to be deleted.
    • RESTRICT (default): refuses to delete the server if any objects depend on it.

Examples

See CREATE SERVER in CREATE SERVER.

Helpful Links

CREATE SERVER, ALTER INDEX

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