Skip to main content

DROP WAREHOUSE

Introduced or updated: v1.2.687

Removes a warehouse and frees up the resources associated with it.

Syntax

DROP WAREHOUSE [ IF EXISTS ] <warehouse_name>
ParameterDescription
IF EXISTSOptional. If specified, the command succeeds silently when the warehouse does not exist. Without it, the command fails if the warehouse is absent.
warehouse_nameThe name of the warehouse to remove.

Examples

Drop a warehouse:

DROP WAREHOUSE my_warehouse;

Drop a warehouse only if it exists:

DROP WAREHOUSE IF EXISTS my_warehouse;
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today