The fastest way to delete a file on a Mac
Select the file or folder you want to delete, then press Command + Delete. The file moves to Trash when ready. That is the standard method on every Mac.
If that keyboard shortcut does not work, right-click the file and select Move to Trash from the menu that appears. Both methods do the same thing — they move the file to a holding area called Trash rather than erasing it permanently from your drive.
The file stays in Trash until you empty it. Until you do, you can recover it by opening Trash (look for the Trash icon in your Dock at the bottom of the screen), finding the file, right-clicking it, and selecting Put Back.
Key Takeaways
- Press Command + Delete to move a file to Trash, or right-click and choose Move to Trash if the keyboard shortcut does not work.
- Files in Trash can be recovered by opening Trash, finding the file, and clicking Put Back until you empty the Trash.
- Emptying Trash permanently deletes files from your Mac, so check for anything you might need before you do.
- Dragging a file to the Trash icon in your Dock works the same way as using the keyboard shortcut or right-click menu.
- If a file is locked or in use by a program, your Mac will tell you and prevent deletion until you close the program or unlock the file.
Selecting multiple files to delete at once
If you need to delete several files from the same folder, select them all before moving them to Trash. Click the first file, then hold Command and click each additional file you want to delete. All selected files will highlight in blue.
Once all the files you want are selected, press Command + Delete or right-click and choose Move to Trash. All of them move to Trash together in one action.
You can also select a range of files by clicking the first one, then holding Shift and clicking the last one in the group. This selects everything between those two files, which is faster when the files are next to each other in a list.
Dragging files to the Trash icon
Another way to delete a file is to drag it directly to the Trash icon in your Dock. The Trash icon sits at the far right end of the Dock (the row of icons at the bottom of your screen). Click and hold the file, then drag it over the Trash icon and release.
This method works the same way as Command + Delete — the file moves to Trash, not permanently erased. Some people find dragging easier than remembering keyboard shortcuts, especially when deleting just one or two files.
Emptying the Trash to permanently delete files
Moving a file to Trash does not remove it from your Mac yet. The file takes up storage space until you empty the Trash. To do this, right-click the Trash icon in your Dock and select Empty Trash.
A dialog box will appear asking you to confirm. Click Empty Trash again. After this step, the files are permanently deleted and cannot be recovered using the Put Back method.
Before you empty Trash, open it and look through the contents to make sure nothing you need is in there. Once Trash is emptied, recovery is much more difficult and may require specialized software or professional help.
What to do if a file will not delete
Sometimes a file will not move to Trash. The most common reason is that a program is currently using the file. Close the program completely and try again. If you are not sure which program has the file open, restart your Mac — this closes all programs and usually solves the problem.
Another reason a file might not delete is that it is locked. Right-click the file and select Get Info. A window opens showing details about the file. Look for a checkbox labeled Locked near the bottom. If it is checked, click it to uncheck it, then close the window and try deleting the file again.
If you still cannot delete a file, the folder itself might have restrictions. Try moving the file to a different folder first, then deleting it from there. If that does not work, you may need administrator permission on your Mac — ask whoever set up your computer.
Deleting files from external drives and cloud storage
Deleting a file from an external hard drive or USB stick works the same way as deleting from your Mac — select it and press Command + Delete. The file moves to Trash on your Mac, not to a trash folder on the external drive.
For files stored in cloud services like iCloud Drive or Google Drive, the process depends on where the file actually lives. If the file is synced to your Mac (meaning a copy sits on your computer), deleting it from Finder moves it to Trash on your Mac but may also delete it from the cloud service. Check your cloud service's settings to understand how deletion works for your account.
If you are deleting a file that only exists in the cloud and not on your Mac, you usually need to delete it through the cloud service's website or app instead of through Finder.
Recovering a deleted file from Trash
If you deleted a file by mistake and have not emptied Trash yet, recovery is straightforward. Click the Trash icon in your Dock to open it. Find the file you want to recover, right-click it, and select Put Back. The file returns to the folder it came from.
If you cannot find the file in Trash or you already emptied Trash, recovery becomes much harder. Your Mac does not have a built-in recovery tool for permanently deleted files. Third-party software like DiskWarrior or Data Rescue may be able to recover the file, but success is not certain and these tools cost money.
The best protection is to check Trash before emptying it. Make this a habit, especially when deleting multiple files or cleaning up folders you have not looked at in a while.
Frequently Asked Questions
Does deleting a file from Trash make it impossible to recover?
Yes. Once you empty Trash, the file is no longer in a place your Mac can easily reach. Recovery is possible only with specialized software, and even then it is not certain. Always review Trash contents before emptying it.
Can I delete a file that is currently open in a program?
No. Your Mac will prevent deletion if a program is using the file. Close the program first, then try deleting the file again. Restarting your Mac closes all programs at once if you are not sure which one has the file open.
What happens when I delete a file from iCloud Drive?
Deleting a file synced to iCloud Drive usually deletes it from both your Mac and iCloud. Check your iCloud settings to see how deletion is handled for your account, or delete through the iCloud website if you want to control where the file is removed.
Is there a way to delete a file without it going to Trash first?
Not through the standard Mac interface. Files always go to Trash first, giving you a chance to recover them. This is a safety feature. If you want to permanently delete something when ready, you would need to use Terminal or third-party software.
Can I delete a file if I do not have administrator permission?
It depends on where the file is and who created it. Files in your own user folder can usually be deleted. Files in shared folders or system areas may require administrator permission. If deletion is blocked, contact whoever manages your Mac.