DROP LISTING
statementsupportedNative apps, listings & sharingRemoves the specified listing from the system and immediately revokes access for all consumers. Important Before dropping a listing, ensure that: - The listing is in state DRAFT or UNPUBLISH. For more information about changing listing states, see ALTER LISTING. - Previously published listings are not mounted by any consumers. See also: CREATE LISTING, ALTER LISTING, DESCRIBE LISTING, SHOW LISTINGS, SHOW VERSIONS IN LISTING, Listing manifest reference
Syntax
DROP LISTING <name>
Parameters
| Name | Required | Description |
|---|---|---|
name | The identifier of the listing to drop. If the identifier contains spaces, special characters, or mixed-case characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. |
Usage notes
- Only the listing owner, the role with the OWNERSHIP privilege on the listing, has the privileges to drop a listing. Executing this command with any other role returns an error.
- Dropped listings cannot be recovered; they must be recreated.
- Dropping a listing automatically invokes the retirement process for all public and monetized listings. Additionally, for other listing types the listing is dropped immediately, and all consumer access automatically revoked.
- When Snowflake detects that a Listing Auto-Fulfillment (LAF) replication group is no longer in use (the replication group has no share objects), Snowflake automatically cleans it up. This can happen when you drop a listing, remove regions, or remove all consumers in a region. The cleanup process can take several days. To remove the replication group immediately, transfer ownership of the replication group to a role you control, and then run DROP REPLICATION GROUP. For example: Copy code GRANT OWNERSHIP ON REPLICATION GROUP myrg TO ROLE accountadmin REVOKE CURRENT GRANTS; DROP REPLICATION GROUP myrg;