DROP ENTITY

Syntax

DROP ENTITY fully_qualified_entity_name
[IN STORE store_name];

Description

Drops an entity from the current store or a provided store name. You cannot drop an entity if any relations are defined that depend on it. But you can drop an entity outside of the DeltaStream platform. In this case the relations and queries that depend on it will fail to progress.

See USE for changing the current store.

Arguments

fully_qualified_entity_name

The full name of the entity to describe.

IN STORE store_name

Optionally, this specifies the store from which the entity should be dropped. If the name is case sensitive you must wrap it in double quotes; otherwise the system uses the lower case name.

Examples

Drop a Kafka topic in the current Kafka Store

The following drops a Kafka topic from the current kafka_store store. Note the store name:

Drop a Kinesis data stream in a specific store

The following drops a Kinesis data stream in the store AltStore, which is also provided to the commands LIST ENTITIES and DROP ENTITY for context:

Drop a Snowflake database

Drop a Snowflake schema

Drop a Snowflake table

Drop a Databricks catalog

This example drops the catalog catalog1 from the Databricks store databricks_store, which in turn drops all of its sub-entities as well:

Drop a Databricks schema

Drop a Databricks table

Last updated