Oct 23, 2026 • Filed to: Solve Mac Problems • Proven solutions
⚡ Quick Answer: How to Fix Files That Can't Be Deleted on Mac?
When a file can't be deleted on a Mac, first close any app using it, then try Relaunch or Force Quit Finder (press Command + Option + Esc). If the item is locked, right-click it, select Get Info, and uncheck Locked. For files still stuck in the Trash, use Terminal commands such as chflags -R nouchg or rm in ~/.Trash. If you accidentally delete important files in the process, recover them instantly with Wondershare Recoverit.
There are various reasons to delete a file. However, whatever reason you might have, your Mac might not agree with you.
Since the creation of on-screen technologies, terms such as "delete", "erase", and "format" has been the go-to options in situations where somebody wanted to get rid of a file or application. Also, to safeguard a system in terms of freeing up space or easy removal of malware, the delete key has been beneficial.
However, in recent versions of operating systems, we have been unable in some cases to delete files from our computers. You have probably faced warnings such as 'folder in use, cannot delete.'
So, how to delete files that won't delete in Mac?
Well, we shall explain why you can't delete a file and also the solutions in the sections below:
Part 1. Why I Can't Delete File on Mac?
You have often wondered why you can't delete an app on Mac. The presence of a Trash bin on Mac has always made it easy to sort out what you don't need. However, this is not true.
There are underlying obstacles that can hinder you from clearing your system of specific files. At times these hindrances save us from deleting sensitive data, probably those required by the system to run.
However, the obstacles can, at times, go overboard. It is when you are unable to get rid of the average local files that you know are not useful to you and the system.
So why would the system or anything else keep you from doing so?
🔍 Common Reasons Why a File Can't Be Deleted on Mac
Below is a quick diagnosis of the most common causes when macOS refuses to delete a file, plus what you can do about each one.
- MacOS has locked a system file. macOS locks sensitive system files that are essential for the OS to run. Deleting them can crash your Mac or even prevent it from booting up.
- The file or folder is currently in use. When a document (for example a Word file) is open or an app is running, macOS prevents deletion to avoid disrupting your ongoing work or accidental data loss.
- An app has locked the file. Some programs lock their own files to prevent editing, copying, or tampering for copyright and security reasons.
- The file is not actually available. Some visible files are "ghost files" or leftover thumbnails on the system. These can't be deleted because they don't really exist on the disk.
- There is a Finder bug. A system glitch may prevent Finder or an app from carrying out its normal operations.
Part 2. Can't Delete Files? Go to the Finder
Usually, the most natural solution to cannot delete files is by dragging them to the Trash. In case you'd want the data back, command + Z would automatically undo your action. To empty Trash, you can access Finder by either double-clicking the Trash icon on your dock or go to the top left section on your Mac and select 'Finder.'
From the Finder menu, you can click on Empty Trash. Also, from the Trash icon at your dock, you can right-click and select Empty Trash.

But that doesn't always work. An error "file can't be deleted" may pop-up to alert you of this. In such a scenario, you can do the following:
Solution 1: Relaunch Finder
- Press
Command + Shift + Escapesimultaneously. - In the menu that pops up, select Relaunch.
- Wait for Finder to finish loading before you start deleting files again.

Solution 2: Force Quit Finder
- Click the Apple logo at the top-left corner of your screen.
- In the drop-down menu, select Force Quit Finder to restart the file manager.

Solution 3: Secure Empty Trash
If a deleted file still won't leave the Trash, use the Secure Empty Trash option instead.
- Open the Finder menu from the top-left of your screen.
- If the normal Empty Trash didn't work, select Secure Empty Trash underneath it.

Command key and right-click the Trash icon in the Dock to choose Secure Empty Trash.Part 3. Cannot Delete Files? Fixes Without Finder
Where the Finder method of deleting apps has not worked out for you, try the following:
Where the item is a folder, delete each file manually to isolate the single erroneous file. If all files get deleted such that the folder is empty, try Trashing it.
Change permissions to empty the Trash. This method makes use of the Terminal using the command 'chflags'.
Method A: Change File Permissions With Terminal
- Open Finder > Applications > Utilities, then launch Terminal. You can also search for Terminal with Spotlight.
- Change the working directory to the Trash by typing:
cd ~/.Trash - Remove the locked flag from every item: run
chflags -R nouchg(without quotes).

Method B: Force-Empty the Trash With Terminal
sudo rm -rf permanently erases everything in the Trash without any confirmation. Only use it when you are absolutely sure of what you are deleting.- Open Terminal as described above.
- Change to the Trash folder with
cd ~/.Trash. - Type
lsto list all files currently in the Trash. - Remove the stubborn file by typing
rm file.png(replacefile.pngwith the actual file name).

If you accidentally deleted important files, just jump to Part 5 for the solutions or directly download Recoverit Data Recovery. It will help you recover all deleted files.
Part 4. Can't Delete File Because File Is in Use on Mac
When MacOS thinks the file you are trying to delete is in use by another process, emptying the Trash will not work. Therefore, the first thing to do is to quit all other programs to ensure no other application could use any of the files on your Mac.
To force quit apps on the dock:
- While pressing option on your keyboard, right-click on the app.
- On the menu that appears, click on force quit.
![]()
With this method, you'll have to quit all apps one by one.
Using the Apple menu:
- Click on the logo on the top left.
- On the drop-down menu, select Force Quit.
- On the next menu of available apps, select the app, you would want to quit and click on the Force Quit button.

After force quitting all apps, now try deleting the file or folder.
If force quitting all programs doesn't work for you, you can try restarting your Mac or even shutting it down then power it on.
Part 5. How to Retrieve Deleted Files on Mac
In the process of trying to delete one file, you can end up deleting several of them, and in extreme cases, you might get frustrated and accidentally format your drive.
However, that is not the end of the road.
How to Recover Files You Accidentally Deleted on Mac
If you accidentally deleted important files while struggling with a stubborn file, Wondershare Recoverit for Mac (version 15.0) can restore them from any storage device, including a corrupted hard drive, USB drive, iPod, or SD card, and supports compatibility with FAT 16/32, NTFS, and HFS+ file systems.
- More organized main menu with internal/external drives and lost partitions displayed clearly.
- Enhanced precision: choose the exact location to run the scan.
- Enhanced file retrieval: recovers raw files even from unrecognized drives.
- Better media preview: preview images, videos, and documents in a larger window.
- Supports recovery from more than ten drives, including Drone cameras and GoPro.
How to Recover Deleted Files on Mac with Recoverit
- Select a location: Launch the software and choose the drive where your files were lost. If you don't know which one, click I can't find my partition and hit Start.

- Scan the location: Recoverit runs an all-around scan to search the entire drive for lost files.

- Preview and recover: When the scan finishes, filter files by format, select the ones you need, and use the preview window to confirm before recovery. Use the option of doing a deeper scan at the bottom if needed.

Part 6. Tips Against "Can't Delete Files on Mac"
Some of the issues that you face with deleting files on your Mac and end up believing that they can't be deleted is false. "Why so?" You ask.
-
1. Settle your mind
First things, first, you needed to relax. Frustrations often lead to irrational behavior. When you feel like it's becoming impossible and you have done everything don't start throwing tantrums. Realize that some files can't be deleted for a reason or you probably are yet to find out. -
2. Research online on various methods
To find out what kind of files you should or shouldn't get rid of, check on sites and articles such as this one. You can look at various methods of troubleshooting for an easy time. -
3. Use past experiences
As a Mac user, you must have heard of similar cases from friends. Ask yourself what they did differently and try to follow their footsteps. -
4. Seek assistance
When memory fails you, and you can't remember what to do, call the right people. Reach out to online experts who can assist. -
5. Be cautious
Finally, with all that you do, be cautious. While struggling to delete a file, you can quickly end up getting rid of something as important as a system file. Double-check on stubborn files when clearing your Hard drive.
Conclusion
Clearing your system is as vital as deleting files and emptying the Trash on your Mac since, with everyday use, your device accumulates unnecessary files. So, when a file error such as "file in use, cannot be deleted" pops up, be careful. Also, you should double-check the kind of files you install, especially third-party apps.
However, when you or anybody else is stuck on how to delete files that won't be deleted, direct them to check out this article. I am sure you have significantly benefited from it so, help others too.
People Also Ask
-
Why won't a file delete on my Mac?
macOS locks the file, an app is still using it, or the file's permissions/locked flag are blocking deletion. Try closing all running apps, relaunching Finder, un-selecting "Locked" in Get Info, or removing the file flag with Terminal. -
How do I force a file to delete on a Mac?
Use Force Quit to close apps using the file, relaunch Finder viaCommand + Shift + Option + Escape, or in Terminal runsudo rm -rfinside the Trash directory. Back up valuable files first with Recoverit.
What's Wrong with Mac
- Recover Your Mac
- 5 best data recovery software for Mac
- Recover my trashed files.
- Recover deleted files on Mac.
- 3 ways to restore Mac photos.
- Recover SD card files on Mac.
- Recover files from external hard drive on Mac
- Fix Your Mac
- Fix grey screen at startup.
- Ethernet issues occur | Fixed.
- Mac won't shut down. Boot it.
- Solve flashing question mark.
- Fix slow WiFi after upgrade.
- Delete Your Mac
- Format your USB drive.
- Delete APFS partition.
- How to format APFS drive.
- What can be cleaned on Mac.
- Format external hard drive.
- Learn Mac Hacks
Recoverit Editorial Team
chief Editor