All my notes are gone, what now?

Your notes are saved and loaded locally from your Mac or iOS device. This means there are ways you could accidentally delete everything. But there are ways to recover your data as well. 

In general, however, make regular backups of your notes for cases where it's not possible to recover your data because you have already emptied the Trash for example.

1. Note extension was changed

If you have ever changed the note extension from "txt" to say "md", and you stopped seeing your daily notes inside NotePlan, it might be that you have changed this preference accidentally or the preference was deleted from your iCloud.

To fix this problem, open NotePlan's preferences and check under "Files" if the note extension is correct. NotePlan would also show you a dialog if a mismatch has been detected.

2. "On My Mac/iPhone/iPad" folder was deleted

It looks like there is nothing in this folder, but if you delete it, all your notes will be deleted too (locally). 

This folder is pointing to the real folder, where all the data is stored for NotePlan. If you have deleted it, you can head over to the Trash and restore it.

To restore it, look for the folder "co.noteplan.NotePlan3". It won't have the same name as in the one you have deleted. Then right-click and "Put Back". If it says the folder already exists, overwrite it. If you have NotePlan still running or restarted it, the folder was probably automatically recreated without notes in it.

3. iCloud or iCloud Drive was turned off

Even if you are syncing using CloudKit, it needs to have iCloud Drive enabled. If you have recently turned it off, it might have removed your notes automatically too. Turn it back on, and if you still can't see your notes, check inside your user folder for iCloud Drive archives:

They might contain NotePlan data, especially if you have used iCloud Drive for syncing.

4. Sync method switched without copying files

If you have switched the sync method from CloudKit to iCloud Drive or vice versa but haven't copied over your notes, you won't see them in NotePlan anymore. 

Switching from iCloud Drive to CloudKit, NotePlan normally asks you if it should copy them automatically. If you missed that or you switched from CloudKit to iCloud Drive, you can simply copy them manually. See here how to find your notes folder.

5. NotePlan removed on Mac with an "uninstaller app"

If you have used "CleanMyMac X" or other uninstaller apps which can remove apps for you, it most probably has also deleted your notes folder. In case you still want to keep your notes, because you just wanted to delete a beta version, for example, try to recover it directly from the uninstaller again. 

Alternatively, you can check your Mac's Trash to see if it was moved there. If you see a folder named  "co.noteplan.NotePlan3", that's most probably the deleted folder. Right-click and click on "Put Back", if possible. If not, you need to manually move it back to "~/Library/Containers/". Copy & paste this path into Finder -> "Go" -> "Go to folder...". Then move NotePlan's folder back.

6. NotePlan deleted on iOS

If you have deleted NotePlan on iOS and are using CloudKit for syncing, iOS will also delete the locally saved files, including the notes. After reinstalling it, it should re-download your notes from CloudKit.

7. iCloud (Drive) storage was deleted

If you tried to make space in your iCloud Drive, or iCloud in general, you might have wiped out NotePlan data as well accidentally. To recover from this, you can re-upload your notes locally again using the advanced sync preferences in NotePlan. 

If your notes were also deleted locally (means you see nothing in NotePlan), then check your Trash, if you can still find your notes there. If you see a folder named  "co.noteplan.NotePlan3", restore it using right-click "Put Back".