Skip to content
86% off$349 $48.86code BF2026

Guides

Mac Won't Boot After Deleting Files With a Disk-Space App

Mac won't start after a disk-space app deleted files? Try Safe Mode, Recovery and First Aid, then reinstall macOS without erasing or restore a backup.

TroubleshootingUpdated 6 min read

On this page

You ran a disk-space or file-viewer tool, deleted files you didn't recognize, and the Mac now restarts with "your computer has restarted because of a problem". Or it hangs on the Apple logo and never reaches the login window.

Why it happens

That message is what macOS shows after a kernel panic. It does not tell you what caused the panic. These are the usual causes, most common first:

  1. A third-party item that macOS loads at startup is gone. Think kernel extensions, system extensions, launch daemons or helper tools from other vendors. On current macOS the system volume is read-only, so deleting something macOS itself needs is harder than it was in 2017. Third-party startup items are the likelier casualty.
  2. System-level files were deleted. This is possible if the tool ran with elevated rights or you are on an older macOS release.
  3. The disk has filesystem errors. A full disk or an interrupted deletion can leave the volume inconsistent.
  4. A peripheral or unrelated update triggered the panic. The deletion may be a coincidence.

We can't tell from the outside which one you have. The forum report this page is based on (a 2017 thread about OmniDiskSweeper) never established what that user deleted. The fixes below go from least invasive to most.

Before you start

  • Do not empty the Trash. If the tool moved files there, they can still be put back.
  • Unplug everything except power: external drives, hubs, adapters and displays.
  • Keep a laptop plugged in. Reinstalling downloads macOS and needs an internet connection.
  • Write down what you deleted and which tool you used.

Fix 1: Start in Safe Mode and put the files back

Safe Mode starts macOS with some software disabled. Apple notes it can help you tell whether startup software is causing the problem (Apple's Safe Mode support article).

Apple silicon

  1. Choose shut down, or hold the power button until the Mac is off, and wait until the screen is black.
  2. Press and hold the power button until "Loading startup options" appears.
  3. Select your startup volume.
  4. Hold Shift, then click Continue in Safe Mode.

Intel Mac

  1. Turn on or restart the Mac, then immediately hold Shift until the login window appears.
  2. Log in. You may be asked to log in a second time.

You should see "Safe Boot" in the menu bar. If it works:

  1. Open the Trash from the Dock.
  2. Select the items you removed, right-click, and choose Put Back.
  3. Restart normally.

If the Trash is empty, the tool deleted the files directly, so skip to Fix 3 or Fix 4. If Safe Mode panics too, go to Fix 2.

Fix 2: Start in Recovery and run First Aid

Apple silicon: shut down, hold the power button until the startup options and Options appear, click Options, then Continue.

Intel: restart and immediately hold ⌘R (Command-R) until the Apple logo appears. Option-Command-R starts Internet Recovery and installs the latest compatible macOS, per Apple's reinstall guide.

Then:

  1. Choose Disk Utility and click Continue.
  2. Choose View > Show All Devices.
  3. Select the last volume, then each container, then the disk, and click First Aid on each in that order.
  4. Quit Disk Utility and restart.

First Aid fixes filesystem errors. It cannot bring back deleted files.

Fix 3: Reinstall macOS without erasing

Apple says macOS Recovery keeps your files and user settings intact when reinstalling, and that a connection to the internet is required (Apple's "Reinstall macOS" guide). Apple still recommends a backup first if you can make one.

  1. Start in Recovery (see Fix 2).
  2. Click Reinstall macOS, then Continue.
  3. When asked to pick a volume, select your current macOS volume (in most cases, it's the only one available). If the installer offers "Macintosh HD" or "Macintosh HD – Data", choose Macintosh HD.
  4. If asked to unlock the disk, enter your Mac login password.
  5. Let it finish. Your Mac might restart and show a progress bar several times, and the screen might be empty for minutes at a time. Don't close the lid or let it sleep.

Details are in Apple's page on how to reinstall macOS.

Two limits. A reinstall replaces macOS, so it will not bring back a driver, helper or app support file from another vendor. Reinstall those apps afterward. And it cannot recover documents the tool deleted directly.

Fix 4: Restore from a Time Machine backup

If you have a backup from before the deletion, this is the most reliable fix because it brings back exactly what went missing.

  1. Start in Recovery.
  2. Connect the backup drive.
  3. Choose Restore From Time Machine and follow the prompts.
  4. Pick the latest backup from before the deletion.

Anything you changed after that backup is lost.

Which fix matches your symptom

SymptomMost likely causeTry
Panic, files are in the TrashStartup item removedSafe Mode, Put Back
Panic, Trash empty, backup existsFiles deleted directlyTime Machine restore
Panic, no backupMissing system or helper filesReinstall macOS, keep the disk
Disk Utility reports errorsFilesystem damageFirst Aid, then reinstall
Reinstall can't see the diskDisk or volume problemApple Support

Checklist before you try again

  • Trash not emptied.
  • Peripherals unplugged.
  • Mac on power, with a working internet connection (Apple notes some networks, such as captive-login or 802.1X ones, can block installing from Recovery).
  • Backup drive nearby, if you have one.
  • A note of the tool and what you deleted.

If nothing works

Contact Apple Support, or visit an Apple Store or authorized service provider, if Recovery won't load, the reinstall fails, the panic returns right after it, or the disk doesn't show in Disk Utility. Apple's guide says that if Disk Utility can't see the disk or erase it, your Mac might need service. Include the exact message, the Mac model, the macOS version, the tool, what you deleted and which fixes you tried.

text
My Mac restarts with "your computer has restarted because of a problem"
after I deleted files with a disk-space tool.
Model: [Mac model], macOS: [version]
Tool used: [name]; deleted: [what you remember]
Tried: Safe Mode [result], First Aid [result], Reinstall macOS [result]
I have / don't have a Time Machine backup. The Trash was not emptied.

Preventing a repeat

OmniDiskSweeper is a free Omni Group viewer that lists files largest first, per the competitor notes (as of November 2026). Moving to the Trash has been its default since version 1.10. Any tool that lets you select arbitrary files leaves the decision to you, so a current Time Machine backup is the real safety net.

We make Gigabroom, so weigh this accordingly. It can't repair a Mac that won't start, and it has no file recovery. What it does is reduce the chance of this happening:

  • Every removal goes to the Trash after a confirmation, and you can put items back until you empty it.
  • It never trashes anything inside /System, /usr, /bin or /sbin, or keychain and ~/.ssh folders.
  • Safe, Regenerates, Review and Keep labels mark risk, and Keep items are reveal-only.
  • Edit > Undo Sweep (⌘Z) puts back the last sweep while the app stays open.

See How Gigabroom removes files safely or try Gigabroom free for 7 days.

Common questions

Will reinstalling macOS delete my files?

Not if you reinstall on your existing volume without erasing. Apple says Recovery keeps your files and user settings. It can't restore files a tool deleted directly.

Can I get files back from the Trash if the Mac won't start?

Only after it starts again, for example in Safe Mode. Don't empty the Trash before then.

Which Recovery key combination should I use on an Intel Mac?

Command-R reinstalls your current macOS. Option-Command-R installs the latest compatible version, and Option-Shift-Command-R the original version that shipped with the Mac, per Apple's guide.

Is the "restarted because of a problem" message always caused by deleted files?

No. It is a generic kernel panic report. Peripherals, disk errors and updates can cause it too.

Every app.
One purchase.