---
title: "How to undo moving, renaming or deleting files on a Mac - PaneStack"
description: "How to undo a file move, rename or trash on a Mac, even later or after a restart, with PaneStack's undo history."
canonical: https://panestack.app/undo-file-move-mac.html
---

# How to undo moving, renaming or deleting files on a Mac

Moved a folder to the wrong place, or renamed a batch of files by mistake? Press **⌘Z** straight away. If it's too late for that, PaneStack keeps an undo history of every file operation, and it still works after you've quit or restarted.

## In Finder

Press **⌘Z** (Edit › Undo) right after the mistake. Finder's undo covers recent changes while Finder keeps running; after a restart it's gone. Something sent to the Trash can also be put back: open the Trash, select it and choose File › Put Back.

## In PaneStack

- **⌘Z, any time.** Undoes the last copy, move, rename or trash.
- **The undo history.** Edit › Show Undo History (**⌥⌘Z**) lists your operations. Undo any of them, not only the last: a move from an hour ago, a batch rename, an Organize or a folder sync.
- **After quitting.** The last 20 operations of the past 24 hours can still be undone after PaneStack restarts.
- **Rules and syncs too.** Every real run of a folder rule is logged and can be undone, and so can a whole folder sync.

## What can't be undone

Deleting immediately (⌥⌘⌫), emptying the Trash, and changes made on a remote server can't be undone, because there's nothing left to bring back. PaneStack asks before deleting anything immediately.

## Common questions

### Can I undo a file move on Mac after closing Finder?

Not in Finder. In PaneStack, yes: the last 20 operations of the past day survive a restart, and ⌥⌘Z shows them.

### How do I undo a batch rename on Mac?

In PaneStack, press ⌘Z. A batch rename is one step, so every file goes back to its old name at once.

## Try PaneStack

PaneStack is a Finder alternative for Mac with up to 16 panes and undo for everything. One purchase, from $4.99, with every future version included. [See pricing](https://panestack.app/#pricing) or read [more tips](https://panestack.app/tips.html).
