Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQ] Auto-delete releases older than X hours/days/months #1451

Open
onedr0p opened this issue Mar 3, 2024 · 1 comment
Open

[FEATURE REQ] Auto-delete releases older than X hours/days/months #1451

onedr0p opened this issue Mar 3, 2024 · 1 comment
Labels
Feature request New features, improvements etc releases

Comments

@onedr0p
Copy link
Contributor

onedr0p commented Mar 3, 2024

Is your feature request related to a problem? Please describe.

Follow up to #924

It would be great if releases could automatically be purged after X amount of time has passed.

For my use-case I would love it if I could automatically purge releases older than a week or month.

Describe the solution you'd like

Allow choosing a configurable amount of time to pass before releases older than X hours/days/months are automatically pruned.

Describe alternatives you've considered

Scripting this with a sidecar container that can access the database and run SQL commands. However this isn't ideal and could break on future updates to autobrr. Having it directly integrated as a feature would be awesome!

Additional context

❤️

@onedr0p onedr0p added the Feature request New features, improvements etc label Mar 3, 2024
@zze0s
Copy link
Collaborator

zze0s commented Mar 5, 2024

There is actually an API endpoint for it, so no need to touch SQL ;)

curl 'http://autobrr/api/release?olderThan=168?apikey=MYAPIKEY' -X DELETE

The value for olderThan is hours so it's pretty flexible.

Having it as a scheduled job was the plan from the start but we started with manual.

@zze0s zze0s added the releases label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request New features, improvements etc releases
Projects
None yet
Development

No branches or pull requests

2 participants