Hello, how can I clear the cache in Prefect when I...
# ask-community
m
Hello, how can I clear the cache in Prefect when I use
@task(cache_key_fn=task_input_hash, cache_expiration=timedelta(days=1))
? Is there a directory I can go into to delete it? I am using Windows for reference.
1
k
There's a default local result storage location that I believe should be in your user folder at
.prefect/storage/
but let me double check that
m
Found it. Should I delete everything in there?
k
I'm not 100% sure at the moment if anything else is stored there, but I've never persisted results locally and I don't have that folder at all, so I'd advise caution
maybe sort by creation date and delete something recent?
or run a task with a brand new input, sort by date, see that the file correlates, then delete it and observe behavior if you run again
just want to be certain I'm not giving you advice that could destroy something important to you
m
Okay thank you so much @Kevin Grismore