You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the development of a new pipeline, it could be necessary to clean up all the metadata of a pipeline or associated tables.
For example, dropping the tables created by dlt could result in the dlt library attempting to truncate tables that do not exist anymore. It could be due to a schema definition existing somewhere, either in the DLT folder or in the destination database.
Residual metadata related to a specific pipeline in the _dlt_version and _dlt_pipeline_state tables or in the local caches in the ~/.dlt/pipelines directory.
Therefore, it's important to ensure that all metadata related to a specific pipeline is properly cleaned up before running the pipeline. This includes deleting the tables in the destination schema and the _staging one, cleaning up the data for that pipeline in the ~/.dlt/pipelines directory, and deleting the rows associated with the right pipelines in the _dlt_version and _dlt_pipeline_state tables.
It would be nice to have a cli command like dlt pipeline pipeline_name clean
Are you a dlt user?
None
Use case
No response
Proposed solution
It would be nice to have a cli command like dlt pipeline pipeline_name clean
Related issues
No response
The text was updated successfully, but these errors were encountered:
Feature description
During the development of a new pipeline, it could be necessary to clean up all the metadata of a pipeline or associated tables.
For example, dropping the tables created by dlt could result in the dlt library attempting to truncate tables that do not exist anymore. It could be due to a schema definition existing somewhere, either in the DLT folder or in the destination database.
Residual metadata related to a specific pipeline in the
_dlt_version
and_dlt_pipeline_state
tables or in the local caches in the~/.dlt/pipelines
directory.Therefore, it's important to ensure that all metadata related to a specific pipeline is properly cleaned up before running the pipeline. This includes deleting the tables in the destination schema and the
_staging
one, cleaning up the data for that pipeline in the~/.dlt/pipelines
directory, and deleting the rows associated with the right pipelines in the_dlt_version
and_dlt_pipeline_state
tables.It would be nice to have a cli command like
dlt pipeline pipeline_name clean
Are you a dlt user?
None
Use case
No response
Proposed solution
It would be nice to have a cli command like
dlt pipeline pipeline_name clean
Related issues
No response
The text was updated successfully, but these errors were encountered: