mert_bakir
06/01/2023, 10:02 AMmeltano invoke dbt-postgres:clean
doesn't seem to work. It says cleaned but it doesn't do anything.
Can we configure a pre-hook command like rm -rf ./transform/target
before dbt-postgres:run
pat_nadolny
06/01/2023, 1:57 PM--unsafe
flag or --force
to allow dbt to delete outside its directory. You can create an issue in the dbt extension repo to potentially override the behavior of clean
for our purposes, idk if we want to do that but it can be discussed.pat_nadolny
06/01/2023, 2:06 PMcommands:
clean_override:
executable: /bin/bash
args: -c ls
I think if you put your rm -rf ./transform/target
bash command in place of the ls
then it would do what you want. I believe the -c
is a required prefix to get it to work thoughmert_bakir
06/02/2023, 6:58 PMclean_override:
executable: /bin/bash
args: -c "rm -rf target"
Works this way, Thanks!