Hi, is there some way to set the data retention po...
# prefect-getting-started
j
Hi, is there some way to set the data retention policy of flow run records in the database? I found the
PREFECT_EVENTS_RETENTION_PERIOD
setting, but it seems it's only running if
PREFECT_EXPERIMENTAL_EVENTS
and even in that case I don't know what it's actually is supposed to do. We are finding that with many flows, our database is getting quite full, especially if the flow run logs are big. So, is there some setting which would make self-hosted Prefect server delete old flow runs from the database?
c
there is no setting for this right now but it's something we're interested in supporting -- right now you need to write what we call a "utility flow" that does this for you. There are a few github issues that mention this that you could follow in the meantime!