DROP BUDGET

Fully qualified name: SNOWFLAKE.CORE.BUDGET

Removes an instance of a custom budget.

See also:

CREATE BUDGET, ALTER BUDGET, SHOW BUDGET

Syntax

DROP SNOWFLAKE.CORE.BUDGET [ IF EXISTS ] <name>
Copy

Parameters

name

Specifies the identifier (i.e. name) of the budget.

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

Budget

The role used to drop a budget must be granted this privilege on the budget.

The USAGE privilege on the parent database and schema are required to perform operations on any object in a schema.

For more information, see Budgets roles and privileges.

Usage notes

  • To refer to this class by its unqualified name, include the database and schema of the class in your search path.

  • Dropped budgets cannot be recovered; they must be recreated.

Examples

Drop budget my_budget in the current schema:

DROP SNOWFLAKE.CORE.BUDGET my_budget;
Copy