DROP COMPUTE POOL
statementsupportedContainer services & dev toolingRemoves the specified compute pool from the account. Snowpark Container Services is available to accounts in AWS, Microsoft Azure, and Google Cloud Platform commercial regions, with some exceptions. For more information, see Available regions and considerations.
Syntax
supportedpartialnot supportednot scored
DROP COMPUTE POOL [ IF EXISTS ] <name>
Parameters
| Name | Required | Description |
|---|---|---|
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. |
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.
Access control 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.