Undo an Accidental Move or Delete With a Keyboard Shortcut in Windows Explorer

Last Updated: Jan 27, 2024 by

We’ve all been there – you’re organizing your files in Windows Explorer and accidentally move or delete something important. Before you panic and start searching for a way to recover your lost file, try using a simple keyboard shortcut to undo the action. In this article, we’ll show you how to use this handy shortcut and some other useful keyboard hacks in Windows Explorer.

The Undo Shortcut

The keyboard shortcut for undoing an accidental move or delete in Windows Explorer is Ctrl + Z. This will revert the last action you performed, whether it was moving, deleting, or renaming a file. If you accidentally undo something you didn’t mean to, you can use the Ctrl + Y shortcut to redo the action.

Other Useful Keyboard Shortcuts

In addition to the undo shortcut, there are several other keyboard hacks that can make navigating and organizing files in Windows Explorer much easier.

Copy and Paste

Instead of using the traditional Ctrl + C and Ctrl + V shortcuts to copy and paste files, you can use the Ctrl + drag and drop method. Simply select the file you want to copy, hold down the Ctrl key, and drag the file to the desired location. This will create a copy of the file in the new location.

Select Multiple Files

To select multiple files at once, you can use the Ctrl + click shortcut. This allows you to select individual files by clicking on them while holding down the Ctrl key. You can also use the Shift + click shortcut to select a range of files at once.

Rename Files

Instead of right-clicking on a file and selecting “Rename,” you can use the F2 shortcut to quickly rename a file. This will highlight the file name, allowing you to type in a new name without having to use your mouse.

Open a New Window

If you need to open a new window in Windows Explorer, you can use the Ctrl + N shortcut. This will open a new window with the same location as the current window.

Customizing Keyboard Shortcuts

If you find yourself using certain keyboard shortcuts more often than others, you can customize them to better suit your needs. To do this, open Windows Explorer and go to the “View” tab. Click on “Options” and then select “Change folder and search options.” In the new window, go to the “View” tab and click on “Keyboard shortcuts.” Here, you can customize the shortcuts for various actions in Windows Explorer.


Using keyboard shortcuts in Windows Explorer can save you time and make organizing your files much easier. The undo shortcut is especially useful for those accidental moves or deletes. Try out these shortcuts and see how they can improve your workflow in Windows Explorer.

Have you used any of these keyboard hacks before? Do you have any other useful shortcuts to share? Let us know in the comments.

Gulrukh Ch

About the Author: Gulrukh Ch

Gulrukh Chaudhary, an accomplished digital marketer and technology writer with a passion for exploring the frontiers of innovation. Armed with a Master's degree in Information Technology, Gulrukh seamlessly blends her technical prowess with her creative flair, resulting in captivating insights into the world of emerging technologies. Discover more about her on her LinkedIn profile.