How do i set delete data older than 2 years which ...
# troubleshooting
y
How do i set delete data older than 2 years which can be triggered from outside.
m
If you know the segment names (naming scheme should have appended date time), you can call the delete api. You can get the segment names using the api to list all segments of a table
Or are you asking how to explicitly trigger segment retention (instead of waiting for the background thread)?
y
Both actually. Isn’t there something simpler than getting the segments parsing the names of the ones older than 2 years and then calling delete on it. Also I thought i could spin up a minion to do such tasks. I wanna trigger a task from the outside which will delete all the segments older than 2 years.
m
It should be easy to implement such an api. Could you please file an issue?