ArkHost/HelixNotes
14
150
Fork
You've already forked HelixNotes
13

Feature Request: Automatically delete orphaned attachments when removing from note or deleting note #52

Closed
opened 2026年05月03日 09:16:00 +02:00 by Wang234 · 1 comment

Description
In the current version of Helix Notes, attaching files to notes is very convenient. However, when an attachment/image is removed from a note, or when a note itself is deleted, the corresponding attachment files remain in a hidden folder inside the note’s directory. This leads to orphaned attachments that are no longer referenced by any note, unnecessarily occupying disk space.

Expected behavior
I would like the new version to provide a way to handle these orphaned attachments properly. Specifically, two options would be appreciated:

Automatic cleanup of unreferenced attachments – A built-in mechanism to detect and delete attachment files that are no longer linked to any note (either automatically on a schedule, or via a manual command like "Clean up orphaned attachments").

Delete attachments when deleting a note – An optional setting to automatically delete all associated attachments when a note is deleted.

These features would help keep the note folder tidy and prevent wasted storage space.

Additional context
Currently, attachments are stored in a hidden folder. Removing the reference from the note does not delete the actual file, nor does deleting the note. This makes manual cleanup error-prone and time-consuming.

Thank you for considering this improvement!

Description In the current version of Helix Notes, attaching files to notes is very convenient. However, when an attachment/image is removed from a note, or when a note itself is deleted, the corresponding attachment files remain in a hidden folder inside the note’s directory. This leads to orphaned attachments that are no longer referenced by any note, unnecessarily occupying disk space. Expected behavior I would like the new version to provide a way to handle these orphaned attachments properly. Specifically, two options would be appreciated: Automatic cleanup of unreferenced attachments – A built-in mechanism to detect and delete attachment files that are no longer linked to any note (either automatically on a schedule, or via a manual command like "Clean up orphaned attachments"). Delete attachments when deleting a note – An optional setting to automatically delete all associated attachments when a note is deleted. These features would help keep the note folder tidy and prevent wasted storage space. Additional context Currently, attachments are stored in a hidden folder. Removing the reference from the note does not delete the actual file, nor does deleting the note. This makes manual cleanup error-prone and time-consuming. Thank you for considering this improvement!

Added in 1.3.1 (release soon): open Info → About and you'll find a "Find orphaned attachments" button under the vault stats. It scans every note (including ones in the trash) and lists attachment files no longer referenced by anything, with sizes. Review the list, then "Move to Trash" they go to the vault's trash folder, so they're recoverable, not permanently deleted.

I intentionally did NOT add automatic/scheduled cleanup or auto-delete-on-note-deletion. Attachments live in one shared folder, so a file the deleted note used might still be used by another note (or one you later restore from trash). Silent auto-deletion there is too easy to get wrong and risk losing a file you wanted. So this stays manual, preview-first, and recoverable.

Thanks for the request!

Added in 1.3.1 (release soon): open Info → About and you'll find a "Find orphaned attachments" button under the vault stats. It scans every note (including ones in the trash) and lists attachment files no longer referenced by anything, with sizes. Review the list, then "Move to Trash" they go to the vault's trash folder, so they're recoverable, not permanently deleted. I intentionally did NOT add automatic/scheduled cleanup or auto-delete-on-note-deletion. Attachments live in one shared folder, so a file the deleted note used might still be used by another note (or one you later restore from trash). Silent auto-deletion there is too easy to get wrong and risk losing a file you wanted. So this stays manual, preview-first, and recoverable. Thanks for the request!
Sign in to join this conversation.
No Branch/Tag specified
main
fix/vault-indication
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.2.9
v1.2.8
v1.2.7
v1.2.6
v1.2.5
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.9
v1.1.8
v1.1.7
v1.1.6
v1.1.5
v1.1.4
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.9
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
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
ArkHost/HelixNotes#52
Reference in a new issue
ArkHost/HelixNotes
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?