Skip to main content

How to recover lost or deleted files on a Mac

Time Machine backup on a MacBook.
Digital Trends

Maybe you’ve misplaced or permanently deleted a file on Mac that you now need. There are several ways to recover items on MacOS depending on how recently you lost or removed the file.

We start with the quickest and simplest methods and work up to the more lengthy or pricey methods for restoring files, folders, and other items on your Mac.

How to undo your last action

At the top of this list is the Undo action because it’s the simplest way to restore a file you’ve just deleted. The key to using Undo is that removing your file was the last action you performed.

As an example, say you just moved a file to the Trash. Follow these steps to reverse that action:

  1. Open the original folder that contained the file before you moved it.
  2. Go to Edit > Undo Move in the Mac menu bar.
Undo Move a file from the Trash on Mac.
Digital Trends

You should then see the file return to that folder from the Trash.

How to recover files from the Trash

If you’ve performed many actions on your Mac or need to restore a deleted file from some time ago, Undo won’t work. Instead, you can recover items from the Trash folder.

Note this only works if you haven’t yet emptied the Trash on Mac.

  1. Open the Trash folder which should be on the right side of your Dock.
  2. Right-click the item you want to recover and pick Put Back in the shortcut menu to place the item back in its original location or just drag the item from the Trash folder to the spot where you want it.
Put Back in the file menu in Trash on Mac.
Digital Trends

Retrieve files from the Recently Deleted folder

If the item you deleted was one of Apple’s apps like Photos, Notes, or Mail, you can retrieve the item from the app’s Recently Deleted folder.

For instance, if you delete a photo, follow these steps to recover it:

  1. Open the app, which in this example is Photos.
  2. Select Recently Deleted in the left-hand menu.
  3. If you set up the folder to require authentication before opening, enter your password or use Touch ID.
  4. Right-click the photo and choose Recover.
Recover a picture in Photos on Mac.
Digital Trends

You’ll then see the picture back in your Library.

How to restore files from Time Machine

In many cases, it may not be as easy to restore a file with the above methods. This is when the built-in Time Machine tool for MacOS can save the day. With it, you can go back in time, locate the file, and restore it easily.

  1. Open the folder that originally contained the item.
  2. Launch Time Machine by doing one of the following:
    • Open Finder, select Go > Applications in the menu bar, and double-click Time Machine.
    • Select the Time Machine icon in the menu bar and choose Browse Time Machine Backups.
  3. Once open, drag the timeline on the right or use the arrows next to the folder to go back to a time before you lost or deleted the file.
  4. Choose the item and click Restore.
Restore a file in Time Machine on Mac.
Digital Trends

Use MacOS Terminal

If you’re familiar with Terminal commands on Mac, you can also use this tool to recover a file.

Note that this method isn’t recommended for new Terminal users or those not comfortable using it. Some commands can overwrite files or have other adverse effects. Additionally, Terminal requires full disk access to run the commands below.

To restore an item from the Mac Trash folder, launch Terminal by opening Finder, selecting Go > Utilities in the menu bar, and double-clicking Terminal.

Enter the following command to access the Trash:

cd .Trash

Enter this command to view the contents:

ls -al ~/.Trash
Trash contents in Terminal on Mac.
Digital Trends

Enter this next command replacing “filename” with the exact name of your file:

mv filename ../
Move a file from the Trash in Terminal on Mac.
Digital Trends

You can then return to your previous directory by typing the following and closing the Terminal:

cd /

Consider data recovery software

Maybe you’ve lost or deleted many files, folders, and other items or are having trouble restoring items with the previous methods. In this case, consider using data recovery software for Mac.

While these tools vary in their features and prices, they normally offer intuitive interfaces for recovering items quickly and easily. A couple of popular Mac options include EaseUS Data Recovery Wizard and CleverFiles Disk Drill.

EaseUS recovers personal data and items from Time Machine and iTunes backups along with HFS+ fusion drive. You can also create a bootable USB drive, receive data protection, and use its Smart Disk monitoring. EaseUS offers a free plan with a paid Pro upgrade for $90 yearly.

CleverFiles Disk Drill restores files, music, photos, videos, and other items from internal, external, and virtual hard drives, as well as memory cards. Disk Drill for MacOS offers a free plan, as well as a paid Pro plan for $89 yearly.

For additional options, check out our recommendations for the best data recovery software.

Topics
Sandy Writtenhouse
Sandy has been writing about technology since 2012. Her work has appeared on How-To Geek, Lifewire, MakeUseOf, iDownloadBlog…
Power up your tech game this summer with Dell’s top deals: Upgrade for a bargain
Dell Techfest and best tech on sale featured.

One of the best times to upgrade your tech stack, be it your desktop, a new laptop, or some high-resolution monitors, is when great deals are to be had. Well, I'm here to share that thanks to Dell's top deals, you can power up your tech game and have most of the summer to make it happen. Maybe you're happy with your current system or setup. That's excellent, but you're likely considering upgrading somewhere, and that's precisely what these deals are all about. Dell has a smorgasbord of deals on laptops, desktops, gaming desktops, monitors, accessories, and so much more. We'll call out a few of our favorite deals below, but for now, know that you should be shopping this sale if you're interested in anything tech-related.

 
What summer tech should you buy in Dell's top deals?

Read more
I love the MacBook Pro, but this Windows laptop came surprisingly close
Apple MacBook Pro 16 downward view showing keyboard and speaker.

There are some great machines in the 15-inch laptop category, which has recently been stretched to include the more common 16-inch laptop. The best among them is the Apple MacBook Pro 16, which offers fast performance for tasks like video editing and the longest battery life.

The Lenovo Yoga Pro 9i 16 is aimed not only at other 16-inch Windows laptops but also at the MacBook Pro 16. It offers many of the same benefits but at a lower price. Can it take a place at the top?
Specs and configurations

Read more
How to set an ‘Out of Office’ message in Microsoft Teams
Person using Windows 11 laptop on their lap by the window.

Many people use Microsoft Teams regularly to communicate with colleagues both inside of the office and remotely. It is considered one of the most efficient ways to ensure you can stay in contact with the people on your team, but what if you need to let people know you’re not readily available? Microsoft Teams has a method for you to set up an "Out of Office" status for your profile to let staff members know when you’ll be gone for the afternoon, for several days on vacation, or for an extended period.
Where do I go to set up my ‘Out of Office’ status for Teams?
It is important to note that your Microsoft Teams and Outlook calendars are synced. This includes your out-of-office status and automatic replies. So, whatever you set up in Microsoft Teams will reflect in Outlook. Similarly, you can set up your out-of-office status in Outlook, and it will be reflected in Teams; however, the former has a more straightforward instruction.

First, you can click on your profile icon in Teams and go directly to Schedule an out of office, as a shortcut. This will take you to the settings area where you can proceed. You can also click the three-dot icon next to your profile icon, then go to Settings > General, then scroll down to the bottom of the page. There, you'll find out-of-office settings and click Schedule.

Read more