The three ways to delete on a Mac
On a Mac, you can delete a file or folder in three ways, and which one you use depends on what you want to happen to it afterward. The simplest is to drag it to the Trash, which keeps it recoverable for weeks. You can also select a file and press Command+Delete to send it to Trash without dragging. If you want to delete something permanently right now, you can empty the Trash, which removes it from your computer entirely — though even then, a data recovery service could potentially retrieve it if you needed to.
Most of the time, dragging to Trash is the right choice because it gives you a safety window. If you realize you deleted something by mistake, you can open the Trash (it sits in the Dock by default, or you can find it in Finder), right-click the file, and choose "Put Back" to restore it to where it was.
Key Takeaways
- Drag a file to the Trash icon in the Dock, or select it and press Command+Delete, to move it to Trash where you can recover it later.
- Files in Trash stay there indefinitely on most Macs until you empty the Trash, which permanently removes them from your computer.
- Right-click a file in Trash and choose "Put Back" to restore it to its original location if you deleted it by mistake.
- If you want to delete a file that is currently open in an process, close the process first or the Mac will not let you remove it.
- Emptying the Trash is permanent and cannot be undone, so double-check that you do not need anything in there before you do it.
Deleting files you are currently using
If you try to delete a file that is open in an process, your Mac will refuse and show you an error message saying the file is in use. This happens because the process has a lock on the file while it is working with it. To delete it, you must close the process first — or close just that document if the process has multiple windows open.
For example, if you want to delete a Word document, close it in Microsoft Word before you try to delete it. If you want to delete a photo, close it in Preview or Photos. Once the process releases the file, you can drag it to Trash without any problem.
Emptying the Trash permanently
When you drag something to Trash, it does not leave your Mac — it just moves to a folder called Trash that holds deleted items. To actually remove it from your computer, you need to empty the Trash. You can do this by right-clicking the Trash icon in the Dock and choosing "Empty Trash", or by opening Finder, clicking "Finder" in the menu bar, and selecting "Empty Trash".
Emptying the Trash is permanent. Once you do it, the file is gone from your Mac in the normal sense — you cannot undo it or recover it through Trash. For this reason, it is a good idea to look through the Trash before you empty it, especially if you deleted several things at once and are not completely sure about all of them.
Recovering a deleted file from Trash
If you deleted something by mistake and the Trash has not been emptied, recovery is straightforward. Click the Trash icon in the Dock to open it, find the file you want back, right-click it, and choose "Put Back". The Mac will move it back to the folder it came from, and it will be exactly where it was before you deleted it.
If you cannot remember what the file was called, you can sort the Trash by date — click the "Date Modified" column header in the Trash window to sort by when things were deleted. The most recent deletions appear at the top, so if you know roughly when you deleted something, you can find it that way.
Deleting folders and everything inside them
When you delete a folder on a Mac, everything inside it goes to Trash too — you do not have to delete the contents separately. The Mac does not warn you that the folder contains files; it just moves the whole thing. This is why it is worth checking the Trash before you empty it if you deleted a folder, especially a large one you have not looked at in a while.
If you want to delete only some of the files inside a folder but keep the folder itself, open the folder first, select the individual files you want to remove, and delete those. The folder will stay behind, empty or with whatever files you did not delete.
Freeing up storage space by deleting
Deleting files and emptying the Trash does free up storage space on your Mac, but only the space that those files were using. If your Mac is running low on storage, deleting old documents, videos, or applications can help. You can see how much space each file uses by selecting it in Finder, pressing Command+I, and looking at the "Size" line in the information window that appears.
Large files that take up the most space are usually videos, photo libraries, and old process installers. If you have downloaded an process and installed it, you can delete the installer file itself — the process will still work. You can also move large files to an external drive or cloud storage instead of deleting them, which frees up space without losing the files.
Deleting applications
Applications on a Mac can be deleted just like any other file — find them in the Applications folder in Finder, drag them to Trash, and empty the Trash. Most applications are self-contained, so deleting the process file removes the whole program. Some applications leave behind small preference files or support folders in your Library, but these take up very little space and do not affect your Mac if the process is gone.
If you want to completely remove every trace of an process, including its preference files, you can use an uninstaller process, but this is rarely necessary. For most purposes, dragging the process to Trash is enough.
Frequently Asked Questions
Can I recover a file after I empty the Trash?
Not through the Trash itself — once you empty it, the file is gone from the normal recovery method. A data recovery service could potentially retrieve it, but this is expensive and not may provide to work. This is why it is important to check the Trash before you empty it.
What if I delete a file and then restart my Mac?
Restarting does not affect files in the Trash. They stay there until you empty the Trash, and you can still recover them by opening Trash and choosing "Put Back". Restarting only clears temporary files and memory, not the Trash.
Can I delete a file that is synced to iCloud?
Yes, but deleting it from your Mac will also delete it from iCloud and your other devices that use the same iCloud account. If you want to keep the file on iCloud but remove it from one Mac, you need to use iCloud settings to stop syncing that folder on that specific computer.
How do I delete a file if I do not have permission?
If a file shows a lock icon or says you do not have permission to delete it, it is usually owned by another user account or by the system. You can try right-clicking the file, choosing "Get Info", and looking for a lock icon at the bottom. If you see one, click it to unlock it, then try deleting again. If that does not work, the file may belong to the system and should not be deleted.