I am using dbt core on the mac, and when I run dbt clean, it is not cleaning up the target folder, even tho my dbt_project.yml has listed the target folder under clean-targets, same with the dbt_packages folder.
➜ dbt_projects dbt clean
22:32:18 Running with dbt=1.5.1
22:32:18 Checking target/*
22:32:18 Cleaned target/*
22:32:18 Checking dbt_packages/*
22:32:18 Cleaned dbt_packages/*
22:32:18 Finished cleaning all paths.
➜ dbt_projects ls models/target/compiled/dbt_projects/models
covid_agg.sql example
➜ dbt_projects grep -A3 'clean-targets' dbt_project.yml
clean-targets: # directories to be removed by `dbt clean`
- target
- dbt_packages
I understand. The default dbt_project.yml is created under project directory (as per docs), and it defaults to clean-targets. I suppose if everything is done relative to the project home directory including setting the target paths it works fine. So so good for now. Thanks