DROP SNOWFLAKE.CORE.BUDGET

Drop an instance of a custom budget.

See also:

CREATE SNOWFLAKE.CORE.BUDGET. SYSTEM$SHOW_BUDGETS_IN_ACCOUNT,

Syntax

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

Parameters

name

Specifies the identifier for the budget. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the identifier string is enclosed in double quotes (e.g. "My object"). Identifiers enclosed in double quotes are also case-sensitive.

If the budget identifier is not fully-qualified (in the form of db_name.schema_name.budget_name or schema_name.budget_name), the command looks for the budget in the current schema for the session.

Access Control Requirements

A role used to execute this SQL command must have the following privileges at a minimum:

Privilege / Role

Object

Notes

OWNERSHIP privilege

Budget

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

Note that operating on any object in a schema also requires the USAGE privilege on the parent database and schema.

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

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