Home > How to Tips

How to Delete Files on Mac That Won't Delete (Force/Permanent)

Updated on Tuesday, August 27, 2024

iBoysoft author Connie Yang

Written by

Connie Yang
Professional tech editor

Approved by

Jessica Shee

English Français Deutsch やまと Español Português

Summary: This post tells how to delete files on a Mac that won't delete. You can follow these ways to force delete files and folders on your Mac. Among the ways, the quickest and easiest way is to use iBoysoft MagiMenu to permanently delete the files that can't be deleted via a right-click.

how to delete files on a Mac that wont delete

After several attempts, you find that you can't delete certain files on your Mac with regular operations. Neither dragging to the Trash bin, right-clicking, or pressing Command - Delete shortcuts. The files seem to be stuck on your Mac.

Here's a case from the Apple community about being unable to delete an item on a Mac:

I can't delete an image on my desktop. Whenever I try to move it to the Trash, it says "The item can't be moved to the Trash because it can't be deleted." What's the matter? How can I delete the file on my Mac that can't be deleted?

If you want to find out the causes and learn how to delete files on a Mac that won't delete, this post will walk you out. It offers some troubleshooting steps to help you force delete a file on your Mac. Then, you can say goodbye to the unwanted stubborn files.

error The item cant be moved to the Trash

How to delete files on a Mac that won't delete? Follow the 9 ways:

  1. Check if the file is currently in use
  2. Restart your Mac
  3. Unlock the file
  4. Check if the file is read-only
  5. Log into the Mac with the admin account
  6. Empty the Trash on your Mac
  7. Use iBoysoft MagicMenu to delete the file
  8. Use Terminal to force delete the file that won't delete
  9. Delete the file in Safe Mode

 Note: When macOS's built-in delete function can't help you delete files, using iBoysoft MagicMenu's Delete Directly feature is the best remedy. With it, you can right-click to permanently delete the unwanted files and reduce the extra steps to empty the Trash after moving them to the Trash.

Share the ways to help others to force delete files or folders on a Mac/MacBook Pro.

 

How to delete files on Mac that won't delete?

If you can't drag the useless files to the Trash on the Dock, switch to right-click or press Command + Delete to delete it. If all the three common ways can't help you get rid of the obstinate files, follow the tricks below to force delete files on your Mac that won't delete.

1. Check if the file is currently in use

If you don't open the file that's about to be deleted, check if one of the running programs is using the file now. You can close all the apps and then try to move the file to the Trash again.

2. Restart your Mac

Maybe some programs running in the background are using the file, making you can't notice and close them. You can restart your Mac to bring the system to the original state and then delete the file.

Restarting your Mac can also clear the temporary errors that make you fail to delete files on the Mac machine.

3. Unlock the file

Have you seen a lock logo on the icon of your file? If yes, it means that the file is locked. Usually, when you delete a locked file, a confirmation dialogue will appear. If you want to force delete this locked file on your Mac, you need to click the Continue button on the window.

click Continue to force delete the locked file on Mac

However, due to software bugs, you may not see the pop-up, and consequently, are unable to delete the file on your Mac. So, how to delete a locked file on your Mac?

In that case, follow these steps to unlock the file:

  1. Right-click the file and choose Get Info. 
    right click the locked file to select Get Info
  2. Uncheck the box next to Locked. 
    unlock the locked file on Mac

After that, you can delete the file with ease.

4. Check if the file is read-only

You commonly can't directly delete a read-only file like the ghost file. When you remove it, you'll see a progress bar that shows the item is being moved to the Trash and a window to ask you to enter the password to allow this. In other words, you need permission to delete this folder or file.

enter password to delete read only file on Mac

To force delete the file on your Mac, you need to click Use Password on the pop-up window and enter your admin password.

If unfortunately, you only see the ongoing deletion progress bar but no pop-up dialogue asking for a password, go to check and change the file's permission.

  1. Right-click the file and select Get Info.
  2. Click the arrow next to Sharing & Permissions to expand the detailed information.
    check your permission to the file
  3. Check if your privilege is "Read only."
    If it is, click the bottom lock icon and enter your admin password to unlock for changes. Next, click on "Read only" and change it to "Read & Write."
    change read only to read write for the file 

5. Log into the Mac with an admin account

If you are a guest user of the Mac, you cannot delete documents, apps, or other types of files owned by the administrator.

In that case, you can log out of your account and then log in with the administrator's account and password. After that, you can effortlessly delete any file on the Mac.

log out the guest user account

6. Empty the Trash on your Mac

If you can't delete files on your Mac due to the error "The operation can't be completed because the disk is full.", it shows that your Mac almost runs out of storage space. Moving files to the Trash simultaneously creates cache files that exceed your Mac's limited available storage.

So, when you can't delete files on your Mac because the startup disk is full, you can empty your Trash bin and then use Command - Shift - Delete to permanently delete them on your Mac.

7. Use iBoysoft MagicMenu to delete the file

If the file is read-write for you and currently not in use, but you can't get rid of it in any way, you can use iBoysoft MagicMenu to help you delete the file that won't be deleted on your Mac.

iBoysoft MagicMenu is a right-click enhancer that aims to help you right-click to do a lot of quick actions. Since the file you prepare to delete is no longer useful for you, you can use iBoysoft MagicMenu to permanently delete it on your Mac via a right-click.

Here's how:

  1. Download, install, and open iBoysoft MagicMenu on your Mac.
  2. Click Extension on its main interface and scroll down to locate Delete Directly.
  3. Click the download button next to Delete Directly. This is to add this feature to your context menu. 
    download delete directly
  4. Right-click on the file you want to delete and select Delete Directly. This file is permanently removed from your Mac and you won't see it in the Trash. 
    right click to select Delete Directly

8. Use Terminal to force delete the file that won't delete

When a file can't be deleted on your Mac via the regular way, you can use Terminal to delete it. Using Terminal can help you delete ghost files on your Mac.

Here's how to force delete a file/folder on a Mac with Terminal:

 Note: This command is to permanently delete files on your Mac rather than put them in the Trash. You can't restore it if you regret it later, except by using a data recovery tool.

  1. Open Launchpad > Other > Terminal.
  2. Enter the following command into the Terminal window and don't press Enter now. sudo rm –R 
  3. Ensure there's a space after R and then drag the file you want to permanently delete to the Terminal window.
  4. Press Enter and enter your admin password to force delete the file on your Mac. 
    force delete files on Mac via Terminal

9. Delete the file in Safe Mode

If after you've tried the above ways, you still fail to remove a file from your Mac. Maybe some third-party applications interfere with your file deletion task.

Then, how to delete files on a Mac that won't delete? You can boot your Mac into Safe Mode and then delete the file. Safe Mode only loads kernel extensions and startup programs while isolating all third-party apps.

If the above 9 ways help you understand how to delete files on a Mac that won't delete, you can share them with your friends.

 

Why is your Mac not letting you delete files?

Deleting files on your Mac is a straightforward thing. If you can't delete a file on your Mac through the common ways like dragging to the Trash, you need to consider a lot. Files that won't be deleted on a Mac can result from multiple reasons. Here, we list the most common ones.

  • The file is currently in use by certain programs.
  • The file is read-only for you.
  • The file is locked.
  • You are a guest user of the Mac.
  • The delete shortcuts are faulty.
  • System errors.
  • The Trash bin doesn't perform properly.

Share the reasons to tell others why Mac doesn't let them delete files.