Back to Mac fixes

macOS · Mac · Security & backups

Erase and reinstall macOS: give your Mac a clean start

When the malware checks have not settled it, a stranger had remote access, or nothing else has worked, erasing the Mac and setting it up again is the clean answer. It deletes everything on the Mac, so the backup comes first.

  • DifficultyAdvanced
  • Time2–3 hours
  • RiskHigh
  • ReversibleNo
  • PlatformmacOS
  • Updated
What that means

High risk. This fix makes deep system changes with a real chance of data loss. Back up your important files before you start. This change is not fully reversible — read every step before you begin and make sure your important work is saved.

Steps

  1. Back up first, and decide which backup you trust

    Careful: Erasing permanently deletes everything on the Mac. Apple's wording: 'Erasing your Mac permanently will delete the files on it.' There is no undo, so do not start until the backup has finished.

    Why?

    After malware or remote access, a backup made once the trouble had started may carry the problem with it. Keep it for your documents and photos, not as something to restore whole.

  2. Check which route your Mac can take

    Why?

    Apple recommends Erase All Content and Settings wherever it is available: it is quicker, and it leaves macOS itself in place.

  3. Erase All Content and Settings

    Ventura or later

    Monterey

    You should see: The setup assistant, as on a new Mac.

    Why?

    This removes your data, settings and apps and keeps the installed macOS, so there is nothing to reinstall afterwards. Go straight to the last step.

  4. Or erase from Recovery, then reinstall macOS

    You should see: The setup assistant once the installation finishes.

    Careful: Keep the Mac plugged in and connected to the internet, and do not close the lid or let it sleep while macOS installs. Apple notes it may restart several times and show a blank screen for a while; leave it alone.

    Why?

    On an Intel Mac, Apple also lists Mac OS Extended (Journaled) as a format; keep whichever Disk Utility offers by default.

  5. Set it up clean, then bring your files back carefully

    Why?

    In Migration Assistant, an older backup is behind the disclosure arrow next to the one it offers first. A large transfer can take hours and may look as if it has paused.

How to verify the fix

The Mac starts into a fresh setup, signs in with your own Apple Account, is on the current macOS, and the pop-ups, unknown apps or odd behaviour that prompted this are gone.

If this didn't fix it

Get professional help if Recovery will not start, if Macintosh HD does not appear in Disk Utility, if the Mac cannot activate, or if it asks for an Apple Account that is not yours. Contact Apple Support, an Apple Store or an Apple Authorised Service Provider. If the same trouble returns on a freshly erased Mac with nothing restored to it, the cause is more likely one of your accounts or another device than this Mac.

Next stop: the related fixes below, or start a guided diagnosis.