How to delete InstallESD.dmg (or any undeletable file) in macOS Trash

Steps:

I. Disable the System Integrity Protection

  1. Shutdown your mac.
  2. Boot into Recovery mode.
    Click the power button and hold down Command + R until you see the Apple Logo.
  3. Click Utilities.
  4. Select Terminal.
  5. Type csrutil status, it should be enabled by the default.
  6. Type csrutil disable, it will disable the SIP.
  7. Restart your machine and let it boot normally.

II. Empty Trash

  1. Login to your account.
  2. Empty your Trash.

III. Restore/Enable the System Integrity Protection

  1. Restart your mac.
  2. Boot into Recovery mode.
  3. Click Utilities.
  4. Select Terminal.
  5. Type csrutil enable.
  6. Type csrutil status, to check if it’s enabled.
  7. Restart your mac.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store