DROP STREAMLIT

Removes the specified Streamlit object from the current/specified schema.

See also:

CREATE STREAMLIT, SHOW STREAMLITS, DESCRIBE STREAMLIT, UNDROP STREAMLIT, ALTER STREAMLIT

Syntax

DROP STREAMLIT [IF EXISTS] <name>
Copy

Required parameters

name

Specifies the identifier for the Streamlit object 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 (e.g. "My Object").

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

Access control requirements

Your role must have the following privileges on objects:

Privilege

Object

OWNERSHIP

Streamlit object that you remove

The USAGE privilege on the parent database and schema are required to perform operations on any object in a schema. Note that a role granted any privilege on a schema allows that role to resolve the schema. For example, a role granted CREATE privilege on a schema can create objects on that schema without also having USAGE granted on that 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

  • For Streamlit objects created using ROOT_LOCATION, this command does not drop the underlying stage because the owner of the Streamlit object may not be the owner of the stage. Additionally, multiple Streamlit objects may point to the same stage. If you need to drop the corresponding stage, use the DROP STAGE command.

  • When the IF EXISTS clause is specified and the target object doesn’t exist, the command completes successfully without returning an error.