SYSTEM$VALIDATE_ACCOUNT_DELETION

functionnot supportedCore SQL functions

docs.snowflake.com ↗

System functions

Returns every condition that blocks dropping an account. The function is read-only: it doesn’t drop the account or change any objects. An organization administrator can call this function for the account they plan to drop. The result lists every blocker in one response, including blockers you can remove and blockers that require Snowflake Support.

Syntax

SYSTEM$VALIDATE_ACCOUNT_DELETION( '<account_name>' )

Parameters

NameRequiredDescription
account_namerequiredName of the account to check. Specify the account name, not the account locator. For example, if the account identifier is myorg-account123, specify account123.

Returns

Returns a JSON object: Each object in the errors array contains the following keys: If DROP ACCOUNT fails, use the error code to find what to remove or who to contact before you retry the command. The condition column summarizes why the drop is blocked. The message value in the function output can be more specific and can name the blocking objects.

Usage notes

Access control requirements

Only an organization administrator can call this function.

See also

Referenced by