# How to Undo File Operations in ComfortFiles

ComfortFiles is a Windows Explorer-style file manager for macOS.

Press <kbd>⌘Z</kbd> to undo your last file operation — a rename, a move, a paste, or a delete. Deleted something by mistake? <kbd>⌘Z</kbd> brings it back out of the Trash to exactly where it was. Redo with <kbd>⇧⌘Z</kbd>.

<video class="howto-shot" autoplay muted loop playsinline poster="/media/how-to/undo-poster.png" width="958" height="790">
  <source src="/media/how-to/undo.mp4" type="video/mp4" />
</video>

## What can be undone

| You did | ⌘Z does |
| --- | --- |
| Renamed a file | Restores the old name |
| Moved / cut-pasted files | Moves them back where they were |
| Deleted to Trash | Restores them from the Trash to the original folder |
| Created a file or folder | Removes it again |

Undo works across the app — it doesn't matter which tab or folder you're looking at when you press <kbd>⌘Z</kbd>.

## The safety checks

Undo verifies the state of your files before acting. If something changed in the meantime — say, the file was renamed again by another app — the undo step is skipped rather than guessing and making things worse.

## Why this matters

Finder has undo too, but knowing your file manager can walk back a wrong move is the difference between careful and confident. It's also why deleting in ComfortFiles goes through the [Trash](/how-to/trash), never straight to gone.
