Skip to main content

DROP SHARE

Introduced or updated: v1.2.949
ENTERPRISE EDITION FEATURE
Data Sharing is an Enterprise Edition feature. Contact Databend Support for a license.

Drops a Share in the provider tenant.

Syntax​

DROP SHARE [ IF EXISTS ] <share_name>

Usage Notes​

  • This statement does not drop the provider databases, tables, or connections.
  • The shared databases of the consumers stay, but reads fail.
  • A new Share with the same name is a different Share. It does not repair the shared databases.
  • To drop a shared database, use DROP DATABASE in the consumer tenant.

For the privileges, see Access Control.

Examples​

DROP SHARE IF EXISTS sales_share;
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today