When you prepare to sell, donate, or recycle a Mac, simply dragging your files to the Trash and clicking “Empty” is not enough to protect your privacy. When a standard file deletion occurs, macOS simply removes the file index, telling the system that the storage space is available for use. The actual data remains perfectly intact on the drive and can be easily recovered using inexpensive data recovery software.
To ensure your financial documents, passwords, and personal photos are permanently destroyed, you must securely erase the hard drive. This process involves writing zeros or random data over the entire drive, making data recovery virtually impossible.
In this guide, you will learn how to boot into macOS Recovery and use the built-in Disk Utility to securely wipe a Mac’s internal storage drive.
Important Pre-Requisites
Before you wipe the drive, ensure you have completed the following:
- Back up your data: A secure erase is irreversible. Ensure you have a complete Time Machine backup or have manually moved your files to an external drive.
- Sign out of iCloud: Go to System Settings, click your Apple ID, scroll to the bottom, and click “Sign Out” to sever the link between the hardware and your account.
- Sign out of iMessage: Open the Messages app, go to Settings > iMessage, and click “Sign Out”.
Step 1: Boot into macOS Recovery
You cannot erase the internal hard drive while macOS is running from it. You must boot the Mac from its hidden Recovery partition.
The method to access Recovery depends on the age of your Mac:
For Apple Silicon Macs (M1, M2, M3, etc.):
- Shut down the Mac completely.
- Press and hold the physical Power button on the keyboard (or Touch ID button).
- Keep holding the button even when the Apple logo appears. Release it only when you see the text “Loading startup options”.
- Click the Options gear icon, then click Continue.
For Intel-based Macs:
- Shut down the Mac completely.
- Press the Power button to turn it on, and immediately press and hold Command + R on the keyboard.
- Keep holding both keys until you see the Apple logo or a spinning globe.
Step 2: Open Disk Utility
Once the Recovery environment loads, you may be prompted to select a user and enter your administrator password. After logging in, you will see the macOS Utilities window.
- From the list of options, select Disk Utility.
- Click Continue.
- In the Disk Utility window, click the View button in the top left corner of the toolbar.
- Select Show All Devices. (This is a crucial step; hiding the devices will only show logical volumes, preventing a complete drive wipe).
Step 3: Select and Erase the Drive
You must now select the physical drive at the very top of the hierarchy.
- Look at the left-hand sidebar under the “Internal” heading. Click the topmost item. It is usually named “APPLE SSD” followed by a model number, or simply “Macintosh HD” at the root level.
- Click the Erase button in the top toolbar.
- A dialog box will appear. Enter a name for the drive (the standard convention is “Macintosh HD”).
- For the Format, select APFS (if you are running macOS High Sierra or newer) or Mac OS Extended (Journaled) for older operating systems.
- For the Scheme, select GUID Partition Map.
Step 4: Configure the Security Options (Intel Macs with Mechanical Hard Drives)
Note for modern Macs: If you are using an Apple Silicon Mac or any Mac with a modern SSD, the “Security Options” button will be greyed out. This is intentional. Modern SSDs use cryptographic erasure. When you click Erase, macOS destroys the encryption keys, instantly rendering the data completely unreadable. You do not need to write zeroes over an SSD.
If you are erasing an older Mac with a mechanical hard drive (HDD), you must configure the security options:
- Click the Security Options… button in the bottom left of the Erase dialog.
- A slider will appear with several options ranging from “Fastest” to “Most Secure”.
- Move the slider one notch to the right (the second position). This option writes a single pass of zeroes over the entire disk, which is highly secure and prevents standard data recovery.
- (Optional) Moving the slider further right writes 3 or 7 passes over the drive (Department of Defense standards). This is extremely secure but can take many hours to complete.
- Click OK.
Step 5: Execute the Erase
With your settings configured, click the red Erase button.
Disk Utility will unmount the volume, delete the partition map, and execute the secure erase procedure. If you selected a multi-pass erase on a mechanical drive, this could take a significant amount of time. Do not interrupt the process or unplug the Mac.
Once complete, you will see a green checkmark. Click Done.
Your Mac’s hard drive is now securely wiped and completely devoid of an operating system. You can now quit Disk Utility and select “Reinstall macOS” from the main utilities menu to prepare the machine for its next owner.