How to Delete Files that Cannot be Deleted on Mac

Wondershare Recoverit Editorial Team

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.

⚠️ Be Cautious: Rapidly deleting files or force-emptying the Trash can accidentally wipe important system or personal data. If that happens, stop what you're doing and run Wondershare Recoverit immediately to recover the deleted files.
"Agh! Why I can't delete a file?" is a common frustration with most Mac users. Usually, you find yourself having no clue on what to do next. Well, this article will guide you to your next and final step.

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.

select scan location

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

  1. Press Command + Shift + Escape simultaneously.
  2. In the menu that pops up, select Relaunch.
  3. Wait for Finder to finish loading before you start deleting files again.

relaunch finder

Solution 2: Force Quit Finder

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

force quit finder

Solution 3: Secure Empty Trash

If a deleted file still won't leave the Trash, use the Secure Empty Trash option instead.

  1. Open the Finder menu from the top-left of your screen.
  2. If the normal Empty Trash didn't work, select Secure Empty Trash underneath it.

secure empty trash mac

💡 Tip: You can also press the 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

  1. Open Finder > Applications > Utilities, then launch Terminal. You can also search for Terminal with Spotlight.
  2. Change the working directory to the Trash by typing: cd ~/.Trash
  3. Remove the locked flag from every item: run chflags -R nouchg (without quotes).

force-empty-trash-6

Method B: Force-Empty the Trash With Terminal

⚠️ Warning: The command 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.
  1. Open Terminal as described above.
  2. Change to the Trash folder with cd ~/.Trash.
  3. Type ls to list all files currently in the Trash.
  4. Remove the stubborn file by typing rm file.png (replace file.png with the actual file name).

force-empty-trash-7

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.

force-quit-apps-from-mac-dock-icon-8

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.

force-quit-menu-9

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

  1. 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.

select the Mac location with deleted files

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

scan Mac location with deleted files

  1. 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.

recover deleted Mac files


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.


Home > Resources > Solve Mac Problems > How to Delete Files that Cannot be Deleted on Mac
Get Recoverit Get Recoverit