1. Help Center
  2. Troubleshooting

How do I clear the Terragrunt Cache in env0

You can clear the cache using an ad hoc task command like so:

find . -type d -name ".terragrunt-cache" -prune -exec rm -rf {} \;

Or if you need to consistently clear the cache you can add it to your deployment with a Custom Flow (env0.yaml)

version: 1

deploy:
steps:
setupVariables:
after:
- find . -type d -name ".terragrunt-cache" -prune -exec rm -rf {} \;