Unable to delete a table

IGRACH
New Contributor III

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.

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

View solution in original post