Accidental deletion happens when we unknowingly delete important files while deleting unwanted files and folders from our Mac system to free up space. For an average Joe, deleting files/folders may be the end of the world. However, this is not true. There is still a chance to recover deleted files on your Mac.
Let’s read further and learn ways to recover deleted files on Mac.

Recovery Depends on How You Deleted a File
Once you realize you have deleted an important file or, worse, a complete folder containing important documents, panic sets. Not all is lost right away and you must take a moment to calm down and think,how did you delete the file/s?
You can easily recover a deleted file on your Mac system if you have moved it to theTrashunless you have used theOption + Command + Deletekey combination, which permanently deletes a file from the system. Moreover, recovery chances get slimmer if theTRIMcommand is enabled.

For such scenarios, data backups, iCloud, Time Machine backups, etc., come in handy.
Methods to Recover Deleted Files on a Mac
Whether you have emptied the Trash or used the ultimate shortcut to permanently delete files/folders from your Mac, stop using your Mac. This will help increase the chances of performing a successful file recovery. Another vital point to keep in mind is that if you shut down your Mac at this stage and the TRIM command is enabled, it could result in 100% data loss.
Hence, stop using your Mac and don’t power it OFF. Follow the stepwise methods shared below.

Method 1: Recover Deleted File/Folder Using the Undo Function
If you have recently moved a file/folder to Trash, the simplest way to recover it is by undoing the action. This will help you recover recently deleted files on Mac. Here’s what to do:
Note–You can also use theCommand + Zshortcut for this.
Method 2: Recover Deleted File from Trash
Another way to recover deleted files on Mac is to recover them from Trash. When you delete a file on a Mac, it goes into the Trash. Trash stores every deleted file for 30 days before they are automatically deleted forever by the OS. Here’s how you can recover deleted files on Mac from Trash:
The selected files will be restored to their original locations from where they were deleted.

Method 3: Recover Deleted Photos using the Photo App
Mac stores photos and videos in the native photo and video manager for macOS calledPhotos. This app has a trash known asRecently Deleted, which stores deleted photos and videos for 30 days, post which it is emptied automatically.
If you have accidentally deleted some photos or videos from your Mac, you may use the steps discussed further to recover them. Here’s what to do:

The selected media files will be restored to their original location.
Method 4: Check Files App on iPad/iPhone
If you are logged in on an iPad or an iPhone using the same Apple account on your Mac, check the Files application for deleted files.
Method 5: Use an External Drive Backup
If you have created a backup of important Mac files on an external HDD/SSD, you can use it to recover deleted files on your Mac. Connect it to your Mac device and locate the file you have permanently deleted from your Mac.
Method 6: Use iCloud Drive to Recover Files
If you have enabled theiCloud Drivefeature on your Mac, you can use it to recover files you have deleted from your iCloud Drive and other applications. You can do this by logging in on iCloud(dot)com. However, you cannot recover permanently deleted files.
Follow the steps below:
you’re able to also follow this guide torestore other application files using iCloud Drive.
If you have used any other cloud storage service, such as Google Drive, One Drive, or DropBox, for backing up your Mac data, use it to recover deleted files.
Method 7: Use Time Machine to Recover Accidentally Deleted Files on Mac
Every Mac system comes pre-installed withTime Machine– a feature that lets you create snapshots of your system and important data at regular intervals. However, it needs to be enabled and set up in advance. When you enable Time Machine, you’re able to configure it with either external storage drives or an Apple AirPort Time Capsule to create timely data backups.
This utility is very useful in recovering permanently deleted files or folders from a Mac. It can also be used to restore entire Mac data on another Mac machine.
This is how it can help you recover permanently deleted files on Mac:
Method 8: Recover Using a Mac Data Recovery Software
In some cases,no Time Machine backup is foundin the configured drive, or the external drive containing backup of your Mac data could fail due to logical errors. It may also happen that you didn’t enable the Time Machine backup in the first place. In such scenarios, you will not be able to recover the deleted files on your Mac.
The only way out is to use an advancedMac data recoverySoftware likeStellar Data Recovery for Mac. It is a powerful data recovery software that lets you recover accidentally deleted files, photos, documents, and more from your Mac. You can also use it to recover files deleted permanently either by emptying the Trash or using theoption + command + deleteshortcut.
This DIY software comes with a simplified and intuitive UI, which makes recovering lost files simple and quick. And the best part is that it needs no internet connection to recover deleted files. Hence, you can use it while on the go!
It uses a quick 3-step recovery process to help yourestore deleted files on your Mac–Scan>Preview>Recover.
Tips to Prevent Data Loss
Here are some tips that can help you reduce the likelihood of accidental deletion and subsequent data loss:
Conclusion
Deleting files has become a muscle memory that we don’t pay much attention to. But sometimes, our carelessness leads to unwanted data loss due to accidental deletion of critical files. Hence, you should be careful while deleting files and do it when not in a hurry. You should also check twice before pressing the delete button, emptying Trash, or using the shortcut to permanently delete files and folders.