mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 16:45:59 +03:00
[GH-ISSUE #103] Delete expired pastes that are never accessed again #63
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FliegendeWurst on GitHub (Jan 22, 2025).
Original GitHub issue: https://github.com/matze/wastebin/issues/103
If I understand the code correctly, the only way an expired paste gets deleted is if someone tries to access it after the expiration date.
This is seemingly confirmed by my database containing pastes that expired 12 days ago.
In my workflow, many pastes are never accessed after their expiration. So I think it would be good to implement a periodic "delete all expired pastes" job.
@matze commented on GitHub (Jan 22, 2025):
It used to be the case but has been changed with 2.3.0. I put it on my list of features for the CLI tool though.