Removes the specified compute pool from the account.
Tip
In addition to SQL, you can also use other interfaces, such as Snowflake REST APIs, Snowflake Python APIs, and Snowflake CLI. See Alternate interfaces.
Syntax¶DROP COMPUTE POOL [ IF EXISTS ] <name>
Copy
Parameters¶name
Specifies the identifier for the compute pool to be dropped.
If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.
For more information, see Identifier requirements.
A role used to execute this operation must have the following privileges at a minimum:
Privilege
Object
Notes
OWNERSHIP
Compute pool
For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.
For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Usage notes¶When dropping a compute pool, Snowflake automatically aborts any running jobs. However, Snowflake does not drop running services. If services are running this command will fail. You need to explicitly drop all running services before dropping a compute pool. You can run ALTER COMPUTE POOL … STOP ALL, which drops both services and jobs. You can also use the DROP SERVICE command to drop individual services.
When the IF EXISTS clause is specified and the target object doesn’t exist, the command completes successfully without returning an error.
The following example drops the compute pool named tutorial_compute_pool
:
DROP COMPUTE POOL tutorial_compute_pool;
Copy
+---------------------------------------------+ | status | |---------------------------------------------| | TUTORIAL_COMPUTE_POOL successfully dropped. | +---------------------------------------------+Alternate interfaces¶
Snowflake REST APIs
Delete a compute pool endpoint
Snowflake Python APIs
Snowflake CLI
snow object drop command
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4