DROP ARTIFACT

Removes a Snowflake Artifact. Dropped artifacts can’t be restored with UNDROP.

Syntax

DROP ARTIFACT [ IF EXISTS ] <name>

Parameters

<name>

: The artifact’s external UUID, not its display title. Find it in the id column of SHOW ARTIFACTS or in an artifact link. Because a UUID contains hyphens, enclose it in double quotes.

IF EXISTS

: Avoids an error if the artifact doesn’t exist.

Access control requirements

An active role must hold OWNERSHIP on the artifact. WRITE alone doesn’t permit deletion.

Example

DROP ARTIFACT IF EXISTS "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee";