TriliumNext / Notes

Build your personal knowledge base with TriliumNext Notes
https://triliumnext.github.io/Docs/
GNU Affero General Public License v3.0
985 stars 56 forks source link

(Feature request) Option to remove ALL note revisions from the database #263

Open Br0kenSilos opened 3 months ago

Br0kenSilos commented 3 months ago

Describe feature

I think it would be nice to have a "one-click" option to clear the database of all previous note revisions. This would be to simply shrink the DB and free up space when things are in a state that the user feels is safe to remove all revisions / snapshots. This would go a long way towards keeping the overall size of the DB (and its backups) down.

Additional Information

Ideally the option to clear all revisions from the database would be available either at the "root" as a right-click option. Or perhaps a better place would be to locate it under Options > Advanced (near the vacuum db option) ) to remove ALL current Revision Snapshots.

Clicking on the option should probably present the user with a clear and concise warning about what the option will do so that they understand that it is going to remove all previous note revisions "globally".

meichthys commented 3 months ago

Sounds like a good idea. It could be added in the "Recent Changes" dialog next to the Erase deleted notes now button: image

I think this would need an additional confirmation prompt since it would be destructive.