How to delete InstallESD.dmg (or any undeletable file) in macOS Trash
1 min readJan 18, 2021
There are times that we encounter stubborn files that can’t be deleted in Trash for some reason.
If you already tried restarting your mac, changing the file permission via Get Info, and deleting the file by force through terminal, then you may also try disabling the SIP (System Integrity Protection) temporarily.
Steps:
I. Disable the System Integrity Protection
- Shutdown your mac.
- Boot into Recovery mode.
Click the power button and hold down Command + R until you see the Apple Logo. - Click Utilities.
- Select Terminal.
- Type csrutil status, it should be enabled by the default.
- Type csrutil disable, it will disable the SIP.
- Restart your machine and let it boot normally.
II. Empty Trash
- Login to your account.
- Empty your Trash.
III. Restore/Enable the System Integrity Protection
- Restart your mac.
- Boot into Recovery mode.
- Click Utilities.
- Select Terminal.
- Type csrutil enable.
- Type csrutil status, to check if it’s enabled.
- Restart your mac.