EDIT 2023-01-24-02:46: Trash is now empty but please read ahead. I decided to let the thread as originally posted because the problem still remains and the errors are the same when trying to delete this rebel file.
Some weeks ago I downloaded macOS Mojave from the App Store to install on a VMware virtual machine. When the install process finished I moved the "Install macOS Mojave.app" file from Applicatons to the Trash. After some days when trying to empty the trash I was presented with the following surprise: The operation can't be completed because the item "Install macOS Mojave.app" is in use.
I then tried to delete it directly from inside the Trash itself and got this:
I checked the file info and the file isn't locked (that box isn't checked and it's grayed out). I even added my user to the permissions box with write/read but macOS still didn't let me delete the file from the Trash.
I then launched Terminal and tried sudo rm -rf /Users/XXXX/.Trash/Install\ macOS\ Mojave.app and got:
Under Terminal I tried lsof /Users/XXXX/.Trash/Install\ macOS\ Mojave.app and nothing was shown
The item is located in the internal SSD's Trash.
I have rebooted and it didn't help.
Neither Activity Monitor nor Force Quit show anything related to the file.
I have tried restarting into Safe Mode to empty the Trash from therebut am getting some wierd loop at logon that doesn't let me launch macOS in this mode (no problems lauching it in normal mode).
EDIT 2023-01-24-02:46: After updating to macOS 13.2 I can now boot into Safe mode without issues. I tried to delete the file from there and received the same errors as in normal mode.
While in safe mode I dragged and dropped the file from the Trash into a folder I created on the desktop. Now the file resides in this new folder and the Trash is empty, but I still cannot delete the file using sudo rm -rf from Terminal.
I then tried to move this folder containing the rebel file to an external USB stick and got the message that the item was copied but couldn't be moved.
This file is getting me crazy. It is almost 6GB of wasted space and I don't understand why macOS doesn't let me delete the damn thing.
I am now empty of options.
Ideas are greatly appreciated thank you.
Using macOS Ventura 13.2 atm here.
Some weeks ago I downloaded macOS Mojave from the App Store to install on a VMware virtual machine. When the install process finished I moved the "Install macOS Mojave.app" file from Applicatons to the Trash. After some days when trying to empty the trash I was presented with the following surprise: The operation can't be completed because the item "Install macOS Mojave.app" is in use.
I then tried to delete it directly from inside the Trash itself and got this:
I checked the file info and the file isn't locked (that box isn't checked and it's grayed out). I even added my user to the permissions box with write/read but macOS still didn't let me delete the file from the Trash.
I then launched Terminal and tried sudo rm -rf /Users/XXXX/.Trash/Install\ macOS\ Mojave.app and got:
Code:
rm: /Users/XXXX/.Trash/Install macOS Mojave.app/Contents/SharedSupport/InstallESD.dmg: Operation not permitted
rm: /Users/XXXX/.Trash/Install macOS Mojave.app/Contents/SharedSupport: Directory not empty
rm: /Users/XXXX/.Trash/Install macOS Mojave.app/Contents: Directory not empty
rm: /Users/XXXX/.Trash/Install macOS Mojave.app: Directory not empty
Under Terminal I tried lsof /Users/XXXX/.Trash/Install\ macOS\ Mojave.app and nothing was shown
The item is located in the internal SSD's Trash.
I have rebooted and it didn't help.
Neither Activity Monitor nor Force Quit show anything related to the file.
I have tried restarting into Safe Mode to empty the Trash from there
EDIT 2023-01-24-02:46: After updating to macOS 13.2 I can now boot into Safe mode without issues. I tried to delete the file from there and received the same errors as in normal mode.
While in safe mode I dragged and dropped the file from the Trash into a folder I created on the desktop. Now the file resides in this new folder and the Trash is empty, but I still cannot delete the file using sudo rm -rf from Terminal.
I then tried to move this folder containing the rebel file to an external USB stick and got the message that the item was copied but couldn't be moved.
This file is getting me crazy. It is almost 6GB of wasted space and I don't understand why macOS doesn't let me delete the damn thing.
I am now empty of options.
Ideas are greatly appreciated thank you.
Using macOS Ventura 13.2 atm here.
Last edited: