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:ย 

Error deleting a table

ronaldolopes
New Contributor

I'm trying to delete a table that was created from a csv and due to the file deletion, I can't execute the deletion, with the following error: I'm new to Databricks and I don't know how to fix this. Some help?Captura de tela de 2022-08-29 14-35-04

1 ACCEPTED SOLUTION

Accepted Solutions

AmanSehgal
Honored Contributor III

To delete the table, it's looking for underlying delta log file and because the file doesn't exist, it's throwing you that error.

Just drop the table.

drop table <table_name>

View solution in original post

2 REPLIES 2

AmanSehgal
Honored Contributor III

To delete the table, it's looking for underlying delta log file and because the file doesn't exist, it's throwing you that error.

Just drop the table.

drop table <table_name>

You have a managed table, so when you do 'drop table <table_name>' it will remove the underlining data + metadata. If this was an external table, then a "drop table <table_name>" will not remove the data associated to the table. I just thought about sharing this, to show the difference between managed and unmanaged (external) tables

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group