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 Directory
in Joplin. -
Locate the
database.sqlite
file: Make a copy of this file as a backup. -
Use a SQLite database browser: Open the copied
database.sqlite
file with a tool like SQLiteStudio. Highly recommended!! -
Find your deleted note: In the
revisions
table, sort by either updated_time orcreated_time
to 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_id
of the deleted note in therevisions
table. -
Restore the note: In Joplin, open the Command Palette (
Ctrl + Shift + P
on Windows/Linux orCmd + Shift + P
on macOS) and typerestoreNoteRevision
followed by a space and theitem_id
you found. -
Check the 'Restored Notes' notebook: Your note should now be in a new notebook named 'Restored Notes'.