cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to delete a table

IGRACH
New Contributor II

When I try to delete a table, I'm getting this error:

[ErrorClass=INVALID_STATE] TABLE catalog.schema.table_name cannot be deleted because it is being shared via Delta Sharing.


I have checked on the internet about it, but could not find any info about it.

1 REPLY 1

ashraf1395
Honored Contributor

Hi @IGRACH ,

You are facing this issue bcz I guess the table you want to delete is being shared by delta sharing. 
You can go to the shared object by following this doc

https://docs.databricks.com/aws/en/delta-sharing/create-share#update-sharesand

Then, you can remove your table from delta sharing and can delete it

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now