DROP COMPUTE POOL¶

Removes the specified compute pool from the account.

See also:

CREATE COMPUTE POOL , ALTER COMPUTE POOL, DESCRIBE COMPUTE POOL , SHOW COMPUTE POOLS

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.

Access control requirements¶

A role used to execute this SQL command 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.

Examples¶

The following example drops the compute pool named tutorial_compute_pool:

DROP COMPUTE_POOL tutorial_compute_pool;
Copy
+---------------------------------------------+
| status                                      |
|---------------------------------------------|
| TUTOTIAL_COMPUTE_POOL successfully dropped. |
+---------------------------------------------+