Every accidentally delete a note, or many notes?
Make sure History is enabled in General Options first. This is required. Mine is set for 90 days.
You will need this tool, SQLite studio for your platform:
I tested the Windows Portable version and it worked!
In Joplin, if you accidentally delete a note, it doesn't go into a recycling bin, but there is a way to retrieve it. You can use the restoreNoteRevision command to recover deleted notes, provided you have the note history feature enabled and are within the configured keep period. Here's a step-by-step guide to help you:
-
Open your Joplin profile directory: Go to
Help > Open Profile Directoryin Joplin. -
Locate the
database.sqlitefile: Make a copy of this file as a backup. -
Use a SQLite database browser: Open the copied
database.sqlitefile with a tool like SQLiteStudio. Highly recommended!! -
Find your deleted note: In the
revisionstable, sort by either updated_time orcreated_timeto find your most recent changes. You can sort in Asc or Dec order. There is also a great search box that will find all notes with the word "lion" for example.
"title_diff" and body_diff" will contain the actual note data. -
Identify the note: Look for the
item_idof the deleted note in therevisionstable. -
Restore the note: In Joplin, open the Command Palette (
Ctrl + Shift + Pon Windows/Linux orCmd + Shift + Pon macOS) and typerestoreNoteRevisionfollowed by a space and theitem_idyou found. -
Check the 'Restored Notes' notebook: Your note should now be in a new notebook named 'Restored Notes'.