Wipe a computer before you sell, donate or recycle it
How to back up, sign out, erase and hand over an old Windows PC or Mac so the next owner gets a clean machine and none of your files or accounts, using Microsoft's and Apple's own tools, plus where to recycle it.

An old computer still holds your photos, saved passwords, email and the accounts it’s signed in to. Before it goes to a buyer, a charity or a recycler, you want three things done: your files copied somewhere safe, the computer released from your accounts, and the drive erased with the maker’s own reset tool.
The steps below describe Windows 11, version 26H2, the newest Windows 11 release Microsoft lists for existing PCs (Microsoft Learn, checked November 23, 2026), with Windows 10 paths noted, and macOS 27 Golden Gate, which Apple lists as its latest macOS at version 27.2.1 (Apple Support, checked November 23, 2026). Older Macs get their own section. Menus move between versions, so if a name on your screen differs, look for the closest match or check the maker’s page linked in each section.
Once the drive is erased, there is no getting a forgotten file back, so back up first.
Back up first, and check the backup
Microsoft’s own checklist for passing on a PC starts with backing up using Windows Backup (Microsoft Support, checked November 23, 2026). Apple says the same for a Mac: back it up first if you want to keep your files, because the steps that follow erase all data (Apple Support, checked November 23, 2026).
Our guide to a 3-2-1 backup plan for home covers Windows Backup, File History, Time Machine and iCloud. Whichever you use, open a few files from the backup before you go further. If you’re moving to a new computer, the guide to setting up a new laptop in the first hour covers bringing files across; wait until you can sign in to your important accounts on the new machine before you wipe the old one.
Windows: have your BitLocker recovery key
Many Windows PCs encrypt their drive. Microsoft says Device Encryption turns on BitLocker automatically on supported devices, including Windows Home, when you sign in with a Microsoft account or a work or school account, and attaches the recovery key to that account. BitLocker Drive Encryption itself is on Windows Pro, Enterprise and Education. To see the setting, sign in as an administrator and go to Settings > Privacy & security > Device encryption (Microsoft Support, checked November 23, 2026).
Why this matters before a reset: Microsoft says that if your device is encrypted, you should have your BitLocker recovery key before you start, and that resetting from the recovery environment (Windows RE) requires it (Microsoft Support, checked November 23, 2026).
Windows: reset with “Remove everything” and “Clean data”
Microsoft’s steps for Windows 11 are: open Settings, select System > Recovery, then under Recovery options select Reset PC, choose your options and follow the on-screen instructions (Microsoft Support, checked November 23, 2026).
The choices that matter for a computer you’re passing on:
- Remove everything reinstalls Windows and removes your personal files, apps and settings. Choose this, not Keep my files, which keeps your personal files.
- Clean data, a sub-option of Remove everything, removes files and cleans the drive. Microsoft’s wording is direct: “If you’re planning to donate, recycle, or sell your PC, use this option.” It takes longer but makes files harder to recover.
- Cloud download fetches a fresh copy of Windows with the latest updates; Local reinstall uses files already on the PC and may not include the latest updates.
Microsoft notes that this data erasure is aimed at consumers and “does not meet government and industry data erasure standards.” It also warns the screen can stay black for a long time, occasionally upwards of 15 minutes, and the PC may restart itself; restarting it yourself can make the reset fail, so leave it plugged in and alone.
On Windows 10, Microsoft’s path is Start > Settings > Update & Security > Recovery, then Get started under Reset this PC, and the same Keep my files or Remove everything choice. Microsoft notes that Windows 10 support ended on October 14, 2025 (Microsoft Support, checked November 23, 2026). If that’s why you’re replacing the PC, see Windows 10 end of support: your options.

Windows: remove the PC from your Microsoft account
After the reset, release the PC from your account. Microsoft’s steps: go to account.microsoft.com/devices and sign in, select Show details for the device, then under the device name select More actions > Remove, check the box for “I’m ready to remove this device” and select Remove. Microsoft also describes selecting Unlink on the same page so the old PC no longer counts toward your Microsoft Store device limit (Microsoft Support, checked November 23, 2026).
Microsoft’s checklist doesn’t cover other software licenses; for paid apps limited to a number of computers, check each maker’s instructions for signing out.
Mac: Erase All Content and Settings (newer Macs)
On a Mac with Apple silicon or the Apple T2 Security Chip running macOS Monterey 12 or later, Apple’s preferred route is Erase All Content and Settings, and Apple says if you use it, you don’t need its other manual steps (Apple Support, checked November 23, 2026).
In current macOS, Apple’s path is Apple menu > System Settings, click General in the sidebar, scroll down and click Transfer or Reset, then click Erase All Content and Settings. You’ll need your Mac login password and your Apple Account password. The erase signs you out of Apple services; if you’re asked to sign back in, Apple says to ignore that and click Erase All Content & Settings (Apple Support, checked November 23, 2026).
When the erase finishes, don’t continue through the setup assistant if you’re selling, giving away or trading in the Mac: press and hold the power button until it turns off, so the next owner starts fresh.
Find My and Activation Lock. Apple says Activation Lock stays on as long as Find My is on, and it requires your Apple Account password to erase or reactivate the Mac. To turn it off yourself, choose Apple menu > System Settings, click your name, click iCloud, click See All (or Show More Apps), click Find My Mac and turn it off. If the Mac is already gone, sign in at iCloud.com/find, select the Mac and click Remove (Apple Support, checked November 23, 2026).
Mac: older Macs, step by step
If Erase All Content and Settings isn’t available, Apple lists manual steps (Apple Support, checked November 23, 2026):
- On macOS Mojave 10.14 or earlier only (Apple says to skip this on Catalina 10.15 or later), open iTunes and choose Account > Authorizations > Deauthorize This Computer.
- Sign out of iCloud. On macOS Ventura 13 or later: Apple menu > System Settings, click your name, then scroll down and click Sign Out. On Monterey, Big Sur or Catalina: Apple menu > System Preferences > Apple ID > Overview > Sign Out. Earlier versions: System Preferences > iCloud > Sign Out.
- Sign out of iMessage. In Messages, choose Messages > Settings (or Preferences), click iMessage, then Sign Out.
- Optionally unpair Bluetooth accessories you’re keeping. Apple warns that if you unpair your only keyboard and mouse, you’ll need USB ones to finish.
- Erase and reinstall. Start up from macOS Recovery, use Disk Utility to erase the Mac, then reinstall macOS from Recovery. At the setup assistant, press Command-Q to shut down instead of continuing.
- On Intel-based Macs, reset NVRAM, then press Command-Q at the setup assistant.
What about taking the drive out?
Microsoft’s and Apple’s pages above rely on their reset and erase tools, not removing the drive. If you’re recycling and want more assurance, the EPA says the two accredited certification standards for electronics recyclers, R2 and e-Stewards, “require destruction of all data on used electronics,” and that certified recyclers offer data security services (EPA, checked November 23, 2026). Ask a recycler whether it is certified before you drop off.
Where to donate or recycle
The EPA says manufacturers and retailers offer several options to donate or recycle electronics, points to locators such as Call2Recycle, Earth911 and Greener Gadgets (noting it doesn’t endorse them), and asks you to “delete all personal information from your electronics” first. It also says to remove batteries where you can, since they may need to be recycled separately, and that lithium-ion batteries and devices containing them should not go in household garbage or recycling bins (EPA, checked November 23, 2026). If a laptop’s battery is built in and the maker doesn’t describe removing it, hand over the whole laptop.
Apple also offers Apple Trade In for its devices (Apple Support, checked November 23, 2026).
Common questions
Is “Keep my files” enough if I’m giving the PC to family?
No. Microsoft says Keep my files keeps your personal files. Use Remove everything, with Clean data, for any computer leaving your home.
I already sold the Mac without turning off Find My. What now?
Apple’s steps: sign in at iCloud.com/find, select the Mac and click Remove. That releases it from your account.
Should I wipe the computer if it doesn’t turn on?
Apple’s page says to try its startup troubleshooting first. If a computer won’t start at all, ask a certified recycler about its data-destruction service.
Should I replace the computer or keep it?
If you’re still deciding, Deal Director’s guides to buying a replacement now or keeping what you have and comparing new, refurbished and open-box versions walk through the decision. Phones and tablets need their own steps; see wipe a phone before you sell or trade it in.
Sources checked November 23, 2026: Microsoft Learn Windows 11 release information; Microsoft Support pages on resetting your PC, device encryption, and what to do before you recycle, sell or gift a Windows PC; Apple Support pages on macOS versions, what to do before you sell, give away, trade in or recycle a Mac, erasing a Mac with Erase All Content and Settings, and Activation Lock on Mac; EPA pages on electronics donation and recycling and certified electronics recyclers. This is general information, not professional IT or security advice; back up before you erase anything, and check your own computer’s documentation.