Hi all! Is there a way of wiping (runs, logs..) history regularly? I wouldn't like to keep data older than 7 days
a
Anna Geller
11/18/2021, 10:23 AM
Are you on Prefect Cloud? if so, on which plan?
g
Gabriel Milan
11/18/2021, 10:25 AM
I'm using Server
a
Anna Geller
11/18/2021, 10:27 AM
in that case, you would need to build some script that would regularly purge this data from the database. If you were on Cloud, this would be configurable.
g
Gabriel Milan
11/18/2021, 10:28 AM
that's fine, but is there a way of doing this through Prefect API? would you have a snippet on that?
a
Anna Geller
11/18/2021, 10:32 AM
I quickly browsed through the API and I believe there is no mutation for it Iām aware of. So afaik, you would have to handle it on a database level.
g
Gabriel Milan
11/18/2021, 10:35 AM
got it, thanks!
a
Anna Geller
11/18/2021, 10:43 AM
@Gabriel Milan my previous message was specifically about logs. But to delete specific flow runs, you could use the
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.