# Undo and restore

Choose what to restore:

| You want to                                      | Use                                         |
| ------------------------------------------------ | ------------------------------------------- |
| Take back a rename, move or delete you just made | [Undo](#undo-a-change)                      |
| Get back a file you deleted                      | [The graveyard](#bring-back-a-deleted-file) |
| Get back text you changed                        | [Version history](#restore-an-old-version)  |

## Undo a change

After a delete, move or restore, a toast offers **Undo**. After the toast closes, press
<kbd>⌘</kbd> <kbd>Z</kbd> outside the editor, and <kbd>⌘</kbd> <kbd>⇧</kbd>
<kbd>Z</kbd> to redo.

Undo covers creating, renaming, moving, deleting, restoring and starring, for 24
hours, in the browser where you made the change.

## Bring back a deleted file

Deleting moves a file to the **Graveyard**. Open it from the rail, find the
file, and pick **Restore**. It goes back where it was; if its folder is gone,
MemoMori makes the folder again.

If something new has the same name, pick **Keep both**, **Replace** or
**Skip**. A deleted folder shows as one row. Open it to restore just part of it.

**Delete forever** removes a file for good. Files in the graveyard count toward
your storage until then. To clear it out on a schedule, turn on **Auto-delete
from graveyard** in [Settings → Files](https://memomori.app/settings/notes).

Turning it on or changing the age limit applies to files already in the
graveyard. Files older than the limit can disappear at once.

## Restore an old version

1. Open the note and click the clock icon. On a phone, pick **History** from the
   menu.
2. Pick a version to see what it changed. For Markdown, switch to **Preview** to
   read it rendered.
3. Click **Restore**.

Restoring adds the old content as a new version. The version you replaced
stays in history until its retention period ends. Notes, code files and
drawings have history; binary uploads do not.

### How long history lasts

Saves from the same session or connected app within 10 minutes of each other
can join one version, for up to an hour. History does not keep each keystroke.

| Age            | Free                              | Pro                                |
| -------------- | --------------------------------- | ---------------------------------- |
| Last 24 hours  | All saved versions                | All saved versions                 |
| After 24 hours | Last version each day, for 7 days | Last version each day, for 30 days |
| After 30 days  | —                                 | Last version each week, for 1 year |

MemoMori always keeps the current version. A version that went live on a
[published site](/docs/publishing) shows a **Published** tag and is kept
forever. If Pro ends, the free history limit applies; subscribing again cannot
bring back versions already removed.
