Heyyy guys, we were using Arize phoenix telemetry - docker image Now we've used it so much that we've a lot of traces and now phoenix UI is taking too long to respond We know we can delete all the traces from UI but we were looking for a way to prune the DB And then intention is to make it a cron job which runs every Sunday so that it deletes the traces and we only keep like 2 weeks of traces or say 1 month of traces only Any suggestions?
Hey Ashish - project level retention policies is coming in the upcoming release. A cron job is also a very reasonable approach. You could issue the project cleanup mutation in the graphQL api on a cadence to solve this.
Oh okayyy! A retention feature will definitely do the trick! Can you give me a little bit information on the graphql api part? Do you mean call the graphql API to do the cleanup?
Yeah, it would look something like this: https://www.graphdev.app/?id=local-49b8ed0c-e9fe-4823-9287-2969f1b01bb5
I tried to open the link but it redirects to a new workspace Is it shared internally with your team only?
mutation RemoveProjectDataFormMutation(
$input: ClearProjectInput!
) {
clearProject(input: $input) {
__typename
}
}{
"input": {
"id": "UHJvamVjdDoy",
"endTime": "2025-03-06T20:17:28.770Z"
}
}Thank you so much, will give it a try!!!
