It may sound like a pretty easy option when we say deleting files from a system. If you own a macOS, well, you might know how to delete any file or any kind of application to free some space. However, there are multiple tips and tricks that you are still unaware of whether or not you have just owned a mac.
Many times there are options when the system does not allow you to delete a file from the system. It could be because it is locked, in use, or may not have permission to be edited.
Also, if your system storage is full and requires you to clean up some space, you can choose to clear up the “Other” files found in the storage category.
Let us look at how to delete files from mac and free some space.
How to delete files on Mac by sending them to Trash Bin
This is the most common method on your system while deleting any file, folder, or application. It is the safest, and you may use it the most in the future.
Method 1: Via the “Move to trash” option

- Select the files you wish to delete.
- Make right-click on the file and choose “Move to Trash.”
- The file will now automatically be sent to the trash bin.
The next option you can try out is directly using certain shortcuts by using the keyboard.
Method 2: Drag and Drop
This is rather just a simple drag-and-drop method. One of the easiest and most convenient methods.
- Select the file you want to delete.
- Drag and drop the file into the recycle bin or Trash.
Method 3: Keyboard Shortcut
You can also try a simple and easy-to-remember keyboard shortcut to send the file to the trash bin.
- Select the file or click on it to highlight it.
- Hold the keys Shift + Command (⌘) + Delete keys.
These are the methods that users most commonly use to delete files from the system. But remember that they are still in the trash and can be restored anytime.
So to clear up the storage space, you can check and clear out the trash to permanently delete the files.
How to delete files on Mac Permanently (without sending them to Trash)
Earlier, we learned how to send the files to the trash bin on your Mac. But if you are too sure about the files you do not want to keep and delete immediately, you can use certain methods as given below.
Method 1:- Using Keyboard Shortcuts
- Select the files you wish to delete.
- Press Alt (Option) + Command + Delete keys on the keyboard
- Click on Delete.
This will remove the files you have selected permanently from the system. You will no longer be able to restore them from anywhere.
Method 2: Using the File Option
- Highlight or select the file that has to delete.
- Click on File on the top menu bar.
- Hold on to Alt (Option) from the keyboard.
- Select Delete Immediately from the drop-down menu.
How to delete files on Mac that are Locked
Have you come across a tab howl deleting any file that says “ Item “Image.jpg” is locked. Do you want to move it to the Trash anyway?”.
Well, there are two paths you can choose to go to. Either delete the locked file or simply unlock them and then delete it.
Unlocking the file before deleting
Here are a few steps that you can follow to unlock the file. Make sure that you are the admin or know the password to the system to unlock it.
- Select the file that is locked.
- Right-click on it. And tap on Get Info.
- Uncheck the box that says Locked.
You can now delete the file using the above mentioned methods, either sending it to the trash or permanently.
How to delete files on Mac that won’t delete
If you thought we were here to discuss only the most basic ways to delete the files and leave out the time when nothing works.
Well, that is not what we are here for. All the above methods do not always work when you have certain errors on the system or the file is corrupted.
Using Safe Mode
- Turn off your system.
- Restart your Mac and hold on to Shift Key.
- Log in to Safe Mode and let go of the key.
- Delete the file that had been causing the error and empty the Trash.
Well, this is the safest space when nothing seems to be working. You can always choose to either restart your system or switch over to safe mode.
How to delete files on Mac when in use
You will notice certain applications that refuse to quit or even be deleted when used. So, you may have to Force Quit them and then carry on by deleting the files.
Method 1: Force Quit Directly
You can use the direct method if you know the app using the file or the app that needs to be force quit.
- Right-Click on the file icon in the dock.
- Hold on to the Alt (Option) key on the keyboard.
- Click on the Force Quit option from the menu options.
- Now, delete the file.
Method 2: Force Quit Multiple Applications
Here is another method that you can try when certain files or apps prevent to use the method above.
- Click on the Apple Logo on the top menu bar.
- Click on Force Quit.
- Select the files from the window and tap on Force Quit.
- Now, delete the file.
No matter which file you are trying to delete, you must quit it first and then carry out the operation.
FAQ
How do I permanently delete files on a Mac without sending them to Trash or risking recovery?
To permanently delete files without using the Trash, select the file in Finder, then press Option + Command + Delete. This bypasses the Trash entirely, making the file unrecoverable through standard means.
For added security, especially with sensitive data, consider using Terminal: open Terminal, type rm -P followed by the file path (e.g., rm -P ~/Documents/sensitivefile.txt), which overwrites the file before deletion.
Note that even this isn’t foolproof against advanced recovery tools, so for highly confidential files, use apps like CleanMyMac or enable FileVault encryption beforehand.
Why doesn’t deleting files free up space on my Mac, and how can I fix it?
If space isn’t freeing up after deletion, the files might still be in the Trash—empty it by right-clicking the Trash icon and selecting “Empty Trash,” or use Command + Shift + Delete.
Other causes include Time Machine snapshots or system caches holding space; check storage via About This Mac > Storage > Manage, and delete old snapshots with tmutil listlocalsnapshotdates in Terminal followed by tmutil deletelocalsnapshots [date].
Purging purgeable space by restarting or using Optimize Storage can also help reclaim gigabytes without manual intervention.
Hidden files (starting with a dot, like .DS_Store) aren’t visible in Finder by default. To reveal them, press Command + Shift + Period in Finder.
Select and delete as usual, or for bulk removal, use Terminal: navigate with cd (e.g., cd ~/Library), then ls -a to list, and rm .filename to delete.
For safer cleanup of hidden junk like caches, third-party tools like MacKeeper can scan and remove them automatically, targeting areas like ~/Library/Caches without affecting system stability.
What should I do if a file won’t delete on my Mac because it’s in use or open?
If a file is “in use,” force quit the associated app: right-click its Dock icon, hold Option, and select Force Quit. If unsure which app, open Activity Monitor (via Spotlight), search for processes using the file, and quit them.
For persistent issues, boot into Safe Mode (restart holding Shift) to delete without background interference. Alternatively, Terminal’s lsof command lists open files (lsof /path/to/file), allowing you to kill the process ID with kill [PID] before deleting.
How can I delete large old files on a Mac to free up storage quickly?
To target large files, go to About This Mac > Storage > Manage, and sort by size under Documents or Other. Use Finder’s search with filters: Command + F, select “File Size” > “is greater than” (e.g., 1GB), then delete results.
For efficiency, apps like CleanMyMac’s Large & Old Files module scan and categorize forgotten items by last access date, letting you archive to external drives before deletion. This approach often uncovers gigabytes in unused downloads or media.
Is it possible to recover files I’ve permanently deleted on a Mac, and how?
Permanently deleted files (bypassing Trash) can sometimes be recovered with data recovery software like EaseUS Data Recovery Wizard or Disk Drill, which scan for remnants on the drive—especially if not overwritten.
Act quickly, as new data can overwrite sectors. If FileVault is enabled, recovery is harder without the password. For prevention, enable Time Machine backups before deletions, or use iCloud for automatic versioning of documents.
How to delete files from an external drive on a Mac that won’t eject properly?
If files on an external drive won’t delete due to ejection issues, first force eject: in Terminal, type diskutil list to identify the drive, then diskutil unmountDisk /dev/diskX (replace X). Delete files via Finder or rm in Terminal.
If locked, check permissions in Get Info > Sharing & Permissions, and unlock with your admin password. For corrupted drives, use Disk Utility’s First Aid before attempting deletions to avoid data loss.
Can I use Terminal to delete multiple files with specific names on a Mac?
Yes, Terminal excels at batch deletions. For files containing a word (e.g., “temp”), use find . -name "*temp*" -delete in the target directory—this searches and deletes recursively. Add -type f to limit to files only.
Always preview with find . -name "*temp*" first to avoid mistakes, as there’s no undo. This is ideal for cleaning residuals from uninstalled apps, like Avast-related files, without manual hunting.
How to securely delete sensitive files on a Mac to prevent data recovery?
For secure deletion, use srm in Terminal (if available via Xcode tools: install Command Line Tools first), like srm -v filepath for verbose overwriting. Alternatively, rm -P overwrites three times.
Empty Trash securely via Finder > Empty Trash while holding Option (though less effective on SSDs). For comprehensive wiping, enable FileVault and use apps like ShredIt or Permanent Eraser, which comply with standards like DoD 5220.22-M for multi-pass overwrites.
How to delete duplicate files on a Mac to reclaim storage space?
Duplicates often accumulate from downloads or backups. Use built-in tools like Finder’s Smart Folders: Command + F, set “Kind” to any, add “Name” matches, then manually compare.
For automation, apps like Gemini 2 or MacKeeper’s Duplicates Finder scan your drive, group identical files by hash, and let you review before deletion. In Terminal, use fdupes -r . to list duplicates in a folder. This can free up significant space, especially with photos or documents.
How to delete old iOS device backups on a Mac?
Old backups from iPhones or iPads can consume gigabytes. Go to System Settings > General > Storage > iOS Files (or About This Mac > Storage > Manage on older macOS).
Select the backup, click Delete, and confirm. If using Finder for backups, connect the device, go to Finder sidebar > [Device] > Manage Backups, right-click the backup, and choose Delete. For iCloud backups, manage via System Settings > Apple ID > iCloud > Manage Account Storage > Backups.
How to clear browser caches and delete extensions on a Mac?
Browser caches build up over time. For Safari: Safari > Settings > Privacy > Manage Website Data > Remove All. For Chrome: Chrome > Clear Browsing Data > Cached images and files.
To delete extensions: In Safari, Settings > Extensions > Uninstall; in Chrome, chrome://extensions/ > Remove. Use apps like CleanMyMac’s Privacy module to clear caches across browsers in one go. This not only frees space but improves browser performance.
How to automatically empty the Trash on a Mac?
Enable auto-empty: In Finder > Settings > Advanced, check “Remove items from the Trash after 30 days.” This purges old Trash contents without manual intervention.
For immediate control, use Terminal: sudo rm -rf ~/.Trash/* (caution: no recovery). Third-party tools like Hazel can set custom rules, like auto-deleting based on age or type, for hands-off maintenance.
How to delete photos and videos from the Photos library on a Mac?
Open the Photos app, select items in the Library or Albums view (hold Command for multiples), then right-click > Delete Photo or press Delete key. For bulk, use Recently Deleted album to review before permanent purge (items auto-delete after 30 days).
If synced with iCloud, deletions propagate across devices. To free more space, optimize storage via Photos > Settings > iCloud > Optimize Mac Storage, which replaces full-res photos with thumbnails.
How to safely delete junk files like caches and temporary files on a Mac?
Junk includes app caches and logs. Manually: Go to ~/Library/Caches, select folders, and delete (restart apps if needed). Use System Settings > General > Storage > Recommendations > Empty Trash Automatically or Remove Large Files.
Apps like CleanMyMac scan for system junk, user caches, and broken downloads, categorizing them for safe removal—avoiding essential files. Run Disk Utility > First Aid on your drive post-deletion to ensure stability.
What to do if you accidentally delete important files on a Mac?
First, check Trash (if not permanently deleted) and restore by dragging out or right-click > Put Back. For permanent deletions, use Time Machine: Enter Time Machine via menu bar, navigate to the file’s folder, and restore.
If no backup, try recovery software like Disk Drill—scan immediately to avoid overwrites. Prevent future mishaps by enabling FileVault and regular backups to iCloud or external drives.
How to delete locked files on a Mac?
Locked files prevent deletion with a warning. Right-click the file > Get Info, then uncheck the “Locked” box under General. If it’s system-protected, enter your admin password.
For stubborn cases, use Terminal: chflags -R nouchg /path/to/file to remove flags, then delete with rm. Boot into Safe Mode if needed, but avoid unlocking critical system files to prevent instability.
How to delete corrupted files on a Mac?
Corrupted files may resist deletion due to errors. Try forcing delete: select and press Option + Command + Delete. If that fails, use Terminal: sudo rm -f /path/to/corruptedfile (force remove).
Run Disk Utility > First Aid on the volume to repair corruption first. For safety, third-party tools like MacKeeper can scan and remove damaged items without risking further issues.
How to clear Other or System Data storage on a Mac?
“Other” or System Data includes caches, logs, and temporary files. Access via System Settings > General > Storage > Other/System Data. Manually delete from ~/Library/Application Support or ~/Library/Logs.
Use commands like sudo rm -rf /var/log/* for logs (with caution). Apps like CleanMyMac target this category specifically, removing gigabytes of accumulated data like old iMessage attachments or Siri caches.
How to completely uninstall apps and remove leftovers on a Mac?
Dragging apps to Trash leaves residuals. Use App Cleaner or CleanMyMac’s Uninstaller module to scan and delete associated files in ~/Library/Preferences, Caches, and Support.
Manually: Search for app name in Library folders and delete matches. For Homebrew apps, use brew uninstall appname --force. This ensures no orphaned files consume space post-uninstall.
How to delete files from the Downloads folder efficiently on a Mac?
The Downloads folder fills quickly. Sort by date in Finder (View > as List > Date Added), select old files (Command + A for all, or Shift for ranges), and delete.
Set up Smart Folders for files older than X days: Command + Option + Space > + > Date Created > is before. Automate with apps like Hazel to move or delete based on rules, keeping it clutter-free.
Why won’t the Trash empty on my Mac, and how to fix it?
Trash may not empty if files are in use, locked, or permissions-denied. Force quit related apps via Activity Monitor, unlock files in Get Info, or use Terminal: sudo rm -rf ~/.Trash/*.
For glitches, restart in Safe Mode and try again. If it’s a permissions issue, repair via Disk Utility or reset with sudo chown -R $USER ~/.Trash.
How to use macOS Optimize Storage feature to manage and delete files?
Enable Optimize Storage in System Settings > General > Storage > Recommendations. It automatically removes watched Apple TV content, stores files in iCloud (deleting local copies), and suggests deleting large attachments. Review and approve deletions to offload infrequently used items, freeing space while keeping access via downloads on demand.
Conclusion
Here is everything you need to know if you are struggling with deleting files on mac. You may encounter multiple issues while using the system, and the abovementioned methods will surely work out for you in the long run.
There are times when the system fails to respond. In such cases, it is required to force quit the application or summon the task manager on Mac to quit the apps.
Furthermore, you can free up storage from your system or delete unnecessary files you may have never used. Your mac needs space to run the built-in apps as well; keeping the system clean makes it run much better.
If you have been encountering other issues not mentioned above, you can let us know in the comment section so that we can help you delete files on Mac efficiently.



































