Files

How to get a deleted file back from the Recycle Bin or Trash

You deleted something and now you need it. Take a breath: on both Windows and Mac, a deleted file usually waits in a bin until you empty it.

26 October 20266 min read

It happens to everyone. You press Delete, the file disappears, and your stomach drops. The good news is that most of the time the file is not gone. Windows keeps it in the Recycle Bin, and a Mac keeps it in the Trash, until the bin is emptied.

This guide shows you how to bring a file back on each computer, what to do if the bin is empty, and how to ask Key to help you find the file again afterward.

First, a calm tip: if you just deleted something, stop deleting other things and do not empty the bin. The sooner you look, the better your chances.

Recover a deleted file from the Recycle Bin on Windows

On Windows 10 and 11, files you delete from your computer's drive normally go to the Recycle Bin. Here is how to restore one.

Restore one file or a few files

  1. Find the Recycle Bin icon on your Desktop and double-click it. If you do not see it, click the search box on the taskbar, type Recycle Bin and open it.
  2. Look through the list for your file. If there are many items, click the Date deleted column heading to put the newest first. You can also click Name or Original location to sort.
  3. Right-click the file and choose Restore.
  4. Windows puts the file back in the folder it came from. The column called Original location tells you where that is.

To restore several files at once, hold Ctrl while you click each one, then right-click any of the selected files and choose Restore.

Restore everything

If you deleted a whole batch by mistake, open the Recycle Bin and click Restore all items in the toolbar. Use this only if you really want it all back, because every item returns to its old folder.

Another way: drag it out

You can also drag a file from the Recycle Bin window straight onto your Desktop or into another folder. This is handy if the original folder no longer exists.

If you cannot find the file in the Recycle Bin

  • Use the search box inside the Recycle Bin window and type part of the file name.
  • Check where the file lived. Files deleted from a USB stick, an external drive or a network folder often skip the Recycle Bin and are removed right away.
  • Very large files can be too big for the Recycle Bin and are removed instead.
  • Check your backups. If you use File History or another backup, right-click the folder the file used to be in, choose Show more options if you see it, then Restore previous versions. This only helps if a backup was turned on before the file was deleted.

Recover a deleted file from the Trash on Mac

On a Mac, deleted files go to the Trash, the icon at the right end of the Dock. Apple gives two simple ways to get a file out.

Use Put Back

  1. Click the Trash icon in the Dock to open it.
  2. Click the file you want to restore to select it.
  3. In the menu bar at the top of the screen, choose File › Put Back.

Put Back sends the file to the exact folder it was deleted from. You can also right-click the file and choose Put Back from that menu.

Or drag it out

With the Trash open, drag the file out of the Trash window and drop it where you want it, such as the Desktop. This is the better choice if you would like it somewhere new.

If the Trash is empty

  • Check for automatic emptying. A Mac can be set to remove items from the Trash after 30 days. If that setting is on, older items are gone.
  • Check Time Machine. If you back up with Time Machine, you can look through earlier copies of the folder and bring the file back. This only works if the backup existed before the deletion.
  • Check iCloud Drive. If the file was in iCloud Drive and you deleted it recently, you may be able to recover it from the iCloud website under its recently deleted items.

Check your cloud folders too

If your file was in OneDrive, it may also be in the OneDrive online Recycle Bin, even when the one on your computer is empty. Sign in to OneDrive on the web, open Recycle bin in the left menu, select the file and choose Restore. Microsoft keeps items there for a limited time, so do not wait. For a personal Microsoft account that is 30 days.

A few habits that make this easier next time

  • Look before you empty. Scan the bin once before you empty it.
  • Turn on a backup. File History on Windows or Time Machine on Mac keeps older copies for the day you really need one.
  • Keep your files tidy. A clean folder makes it easier to notice what is missing. Our guide on cleaning up your Downloads folder without losing anything can help.

Ask Key to find the file once it is back

Restoring a file is only half the job if you cannot remember where it landed. Key is a free assistant for Windows and Mac that you can speak to or type to. It opens your apps, finds your files and tells you what it did. It finds files by what is inside them, not just by the name, and it asks which one you meant if two things match.

So after you restore a document, you can ask for it the way you would ask a friend. If you cannot remember its name, our guide on finding a file by what is inside it shows the same idea by hand.

KeyVoice

Find the electricity bill from March and put it on my Desktop

searched your files for the March electricity billread the document to check it matchedput it on the Desktop

I found your March electricity bill and put it on your Desktop.

Checked: the file is on the Desktop and opens as the March electricity bill.

One more thing worth knowing: Key never deletes for good. Anything it removes goes to the Recycle Bin or the Trash. There is no permanent delete in the program at all, so the steps in this guide still apply to anything Key has removed for you. You can read more in is it safe to let an AI assistant use your computer?

Quick summary

  1. Windows: open the Recycle Bin, right-click the file, choose Restore.
  2. Mac: open the Trash, select the file, choose File › Put Back.
  3. Not in the bin? Check File History or Time Machine, and your cloud folders such as OneDrive or iCloud Drive.
  4. Back it up so the next accident is a small one.

Try Key free

Speak to it or type to it. It opens your apps, finds your files and changes your settings, then tells you what it did.

Free, no card. Windows 10 or 11, macOS 11 or newer.

More guides