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

Delete delta live table without deleting DLT pipeline

AngadSingh
New Contributor III

Hi,

I am wondering how do I delete the managed DLT table without deleting the DLT pipeline? I tried commenting the code for the table definition but the DLT pipeline complains that source code has no table to create or update. 

Thanks in advance.

#dataengineering #deltalivetable

2 REPLIES 2

filipniziol
Contributor

Hello @AngadSingh ,

The error message you've shared identifies the issue you're encountering. The error message:

 

Source code has no table to create or update.

 

occurs because your Delta Live Tables (DLT) pipeline does not have any streaming tables defined after you commented out the table definition. Delta Live Tables require at least one table in the pipeline code to execute. Without any table, the pipeline has nothing to process, leading to the error.

Hi I understand the error which is displayed on in my screenshot. I was trying to delete the table by commenting the code. Hence the error.

However, my question is that is there another way to delete table without commenting code or deleting the pipeline? I  mean hard delete like deleting checkpoint and directories like we can do for delta tables. 

Thanks

Angad

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