DROP ACCOUNT

statementsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Object: ACCOUNT

Drops an account, which initiates the process of deleting the account.

Syntax

supportedpartialnot supportednot scored

DROP ACCOUNT [ IF EXISTS ] <name> GRACE_PERIOD_IN_DAYS = <integer>

Parameters

NameRequiredDescription
nameSpecifies the name of the account being dropped. As an example, if the full account identifier is myorg-account123, then specify account123 as the name. If you do not know the account name, execute the SHOW ACCOUNTS command, and find the name in the account_name column. The legacy account locator cannot be used to identify the account.
GRACE_PERIOD_IN_DAYS = integerSpecifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days.

Usage notes

Example

To drop an account my_account and allow a 14-day grace period for restoring the account, enter:

See also

Referenced by