Optionally specify a custom list of directories to be removed by the
dbt clean command. As such, you should only include directories containing artifacts (e.g. compiled files, logs, installed packages) in this list.
If this configuration is not included in your
dbt_project.yml file, the
clean command will remove files in your target-path.
Remove packages and compiled files as part of
This is our preferred configuration
To remove packages as well as compiled files, include the value of your packages-install-path configuration in your
clean-targets:- target- dbt_packages
dbt_packages directory will be removed.
Note: this is the configuration in the dbt starter project, which is generated by the
logs when running
clean-targets: [target, dbt_packages, logs]