1
0
Fork 0
mirror of https://github.com/maziggy/bambuddy.git synced 2026-05-09 08:25:54 +02:00

[GH-ISSUE #1008] [Feature]: Purge out old files from file manager #706

Closed
opened 2026-05-07 00:12:57 +02:00 by BreizhHardware · 7 comments

Originally created by @cadtoolbox on GitHub (Apr 17, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1008

Originally assigned to: @maziggy on GitHub.

Problem or Use Case

With lots of users and lots of prints the files can become plentiful making backup and restores take a long time.

Proposed Solution

Add ability for admins to purge out older files that have not been re-printed in X number of days.

Alternatives Considered

No response

Feature Category

File Manager

Priority

Nice to have

Mockups or Examples

No response

Contribution

  • I would be willing to help implement this feature

Checklist

  • I have searched existing issues to ensure this feature hasn't already been requested
Originally created by @cadtoolbox on GitHub (Apr 17, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1008 Originally assigned to: @maziggy on GitHub. ### Problem or Use Case With lots of users and lots of prints the files can become plentiful making backup and restores take a long time. ### Proposed Solution Add ability for admins to purge out older files that have not been re-printed in X number of days. ### Alternatives Considered _No response_ ### Feature Category File Manager ### Priority Nice to have ### Mockups or Examples _No response_ ### Contribution - [ ] I would be willing to help implement this feature ### Checklist - [x] I have searched existing issues to ensure this feature hasn't already been requested
BreizhHardware 2026-05-07 00:12:57 +02:00
Author
Owner

@maziggy commented on GitHub (Apr 22, 2026):

Before I build it, a few questions so it lands the way you actually need:

  1. Manual or scheduled (or both)?
    - Manual: an admin "Purge old files" button with a confirmation dialog showing count + disk space to be freed.
    - Scheduled: runs daily/weekly in the background, same way the new scheduled local-backup works.
    - Both is also fine but adds some UI.

  2. What counts as "old"? Just a day threshold (e.g. "not re-printed in 90 days"), or would you also want per-file-size / total-library-size triggers (e.g. "keep library under 10 GB, drop oldest first")?

  3. Files never printed — some files get uploaded and never printed at all. Should those be included once they cross the age threshold, or left alone?

  4. External files (3MF files linked from a network path rather than stored locally) — I'd skip these since they don't take disk space. Any reason not to?

  5. Safety net — do you want purged files to go to a soft-delete / trash state first for a grace period, or direct hard-delete? Soft-delete is safer but uses the same diskspace until the grace period ends, so it doesn't fully solve the backup-size problem unless the grace period is short.

  6. Per-user vs global — should each user's files be purged independently based on their last-print time, or is this purely an admin-wide operation?

<!-- gh-comment-id:4296356239 --> @maziggy commented on GitHub (Apr 22, 2026): Before I build it, a few questions so it lands the way you actually need: 1. Manual or scheduled (or both)? - Manual: an admin "Purge old files" button with a confirmation dialog showing count + disk space to be freed. - Scheduled: runs daily/weekly in the background, same way the new scheduled local-backup works. - Both is also fine but adds some UI. 2. What counts as "old"? Just a day threshold (e.g. "not re-printed in 90 days"), or would you also want per-file-size / total-library-size triggers (e.g. "keep library under 10 GB, drop oldest first")? 3. Files never printed — some files get uploaded and never printed at all. Should those be included once they cross the age threshold, or left alone? 4. External files (3MF files linked from a network path rather than stored locally) — I'd skip these since they don't take disk space. Any reason not to? 5. Safety net — do you want purged files to go to a soft-delete / trash state first for a grace period, or direct hard-delete? Soft-delete is safer but uses the same diskspace until the grace period ends, so it doesn't fully solve the backup-size problem unless the grace period is short. 6. Per-user vs global — should each user's files be purged independently based on their last-print time, or is this purely an admin-wide operation?
Author
Owner

@cadtoolbox commented on GitHub (Apr 22, 2026):

1.) I would probably say manual would be sufficient and the safer route.

2.) If it's manual, maybe allow the admin to pick "Older than XX number of days"

3.) Yes

4.) Agree

5.) A trash bin approach is fine, after X number of days it then deletes.

6.) I say an admin approach, but I don't try to use Bambuddy as a repository, it's a tool to print.

<!-- gh-comment-id:4299571548 --> @cadtoolbox commented on GitHub (Apr 22, 2026): 1.) I would probably say manual would be sufficient and the safer route. 2.) If it's manual, maybe allow the admin to pick "Older than XX number of days" 3.) Yes 4.) Agree 5.) A trash bin approach is fine, after X number of days it then deletes. 6.) I say an admin approach, but I don't try to use Bambuddy as a repository, it's a tool to print.
Author
Owner

@maziggy commented on GitHub (Apr 23, 2026):

Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you.

Docs -> https://wiki.bambuddy.cool/features/file-manager/?h=purge#purge-old-files-admin

Shipping the File Manager purge + trash bin + auto-purge setting for now. Your original concern — backup/restore size — also applies to the Archive section, which tends to be bigger than the library in my own install. Want me to extend the same treatment (trash + retention + optional auto-purge) to archives?

<!-- gh-comment-id:4304985438 --> @maziggy commented on GitHub (Apr 23, 2026): Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you. Docs -> https://wiki.bambuddy.cool/features/file-manager/?h=purge#purge-old-files-admin Shipping the File Manager purge + trash bin + auto-purge setting for now. Your original concern — backup/restore size — also applies to the Archive section, which tends to be bigger than the library in my own install. Want me to extend the same treatment (trash + retention + optional auto-purge) to archives?
Author
Owner

@cadtoolbox commented on GitHub (Apr 23, 2026):

@maziggy Yes please!

<!-- gh-comment-id:4305006766 --> @cadtoolbox commented on GitHub (Apr 23, 2026): @maziggy Yes please!
Author
Owner

@maziggy commented on GitHub (Apr 23, 2026):

I was afraid of that :)

<!-- gh-comment-id:4305023349 --> @maziggy commented on GitHub (Apr 23, 2026): I was afraid of that :)
Author
Owner

@maziggy commented on GitHub (Apr 23, 2026):

Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you.

Docs -> https://wiki.bambuddy.cool/features/archiving/?h=purge#enabling-auto-purge

<!-- gh-comment-id:4305380515 --> @maziggy commented on GitHub (Apr 23, 2026): Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you. Docs -> https://wiki.bambuddy.cool/features/archiving/?h=purge#enabling-auto-purge
Author
Owner

@cadtoolbox commented on GitHub (Apr 27, 2026):

@maziggy Works perfectly!

<!-- gh-comment-id:4323698779 --> @cadtoolbox commented on GitHub (Apr 27, 2026): @maziggy Works perfectly!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#706
No description provided.