Skip to content

How to Securely Erase Your Data Before Selling or Recycling a Device

John McLane profile photoJohn McLane ·May 30, 2023 ·7 min read
Closed laptop beside a hard drive and an SSD on a wooden workbench

The laptop you’re about to sell may still hold saved tax forms, downloaded invoices, and a browser profile that opens into your accounts. The old phone in your drawer may still receive sign-in prompts. Before either device leaves your hands, decide what you need to keep and what needs to be removed. Then use an erase or reset method suited to the device and the sensitivity of the data it held.

Start with three questions. What kind of storage holds the data? Will someone reuse the device or will it be recycled? Does it contain personal files, business records, or information covered by a workplace policy? An ordinary phone trade-in and retiring a failed drive from a payroll computer call for different decisions. Here’s how to work through both situations without losing the files and account access you still need.

Before You Securely Erase Your Data, Check Your Backup

Copy the files you need to keep and test the copy on another device. Start with folders you already know about, such as Documents, Downloads, and Photos. Then check the places that are easy to overlook. You may have recordings inside a messaging app, an accounting database stored in an application folder, or a photo library that contains originals that never finished syncing.

Open a few recent files from the backup. Check a document, a photo or video, and anything you would struggle to replace. If an app needs a specific export or restore process, test that process before erasing the device. For example, seeing an archive file in a cloud folder is less useful than confirming that the new computer can open it and show the records you need.

Check your accounts while the old device still works. Move authenticator entries using the app’s transfer instructions, save any recovery codes you need in a secure place, and test at least one sign-in from the replacement device. Transfer or confirm access to the phone number that receives verification messages. Once the backup and account transfer are done, disconnect external backup drives before you start an erase.

Match the Method to the Storage

Deleting a document or emptying the trash removes it from everyday view. How much data remains recoverable depends on the device, filesystem, and what happens after the deletion. A quick format often prepares storage for reuse by rebuilding filesystem structures. Treat formatting and sanitization as different tasks. If you’re unsure what counts as persistent storage, see NetworkUstad’s guide to the basics of computing.

For a working magnetic hard drive, overwriting the addressable space can be a clearing method when it meets the applicable requirements. Check whether the tool covers the entire intended drive and reports errors. A drive that disconnects during the operation or reports unreadable areas needs further assessment before you hand it over. The number of passes on the screen tells you little about which areas the tool could actually reach.

Solid-state drives and other flash media require their own guidance. Internally, an SSD can move data between physical locations to manage wear. The operating system addresses logical blocks and does not directly control every physical location. Writing repeatedly to the space you can see therefore gives limited assurance about spare or remapped areas. Look up the procedure for the exact model and use a manufacturer-supported sanitization feature when appropriate for the data and your disposition plan.

Cryptographic erase works by making encrypted data inaccessible through removal of the relevant keys. Its suitability depends on how and when the data was encrypted and what copies of the keys remain. Simply enabling encryption just before disposal gives you no basis to assume that every older copy was covered. For work equipment, follow your organization’s approved process for handling drives and keys.

Choose Between Clear, Purge, and Destroy

NIST’s media sanitization guidelines distinguish three approaches. Clearing uses a suitable technique to protect against basic recovery from user-accessible storage. Purging uses an appropriate method designed to make recovery infeasible even with more advanced techniques and can leave the media usable. Destruction makes recovery infeasible and leaves the media unusable. The correct choice depends on the equipment, the data, and who will control it next.

Imagine two similar laptops. One was a home computer with ordinary personal files. Its owner wants to donate it in working condition. The other was a business computer with client records, and the drive has stopped responding. An official reset might be appropriate for the first device. The second calls for a decision by the organization responsible for the records, potentially using approved destruction if the required sanitization cannot be performed or verified.

For business equipment, check ownership, retention requirements and any applicable preservation instructions before wiping. Record which asset is being retired, which storage media it contains, and where the device is going. A generic certificate is of limited use if it cannot be matched to the asset or if the underlying method was unsuitable for that drive.

Prepare a Computer for Resale or Donation

Start with the computer manufacturer’s or operating system vendor’s instructions for transferring the device. Check for a second internal drive or an inserted memory card. A reset that acts on the Windows system drive may leave a separate storage device outside the selected scope. Keep any drive you intend to retain out of the transfer and handle each drive according to its contents.

Microsoft’s Reset your PC guide describes a consumer resale workflow using Remove everything with Clean data enabled. Review the available options before starting so you know which drives are included. Microsoft says this functionality is intended for consumers and does not meet government and industry data-erasure standards. Business devices should go through the approved process for their data and hardware.

On a Mac, check Apple’s instructions for your model and macOS version. Some Macs provide Erase All Content and Settings. Older models may require a different process. If the machine has workplace management or an account-related ownership lock, coordinate release with the organization or account owner before transfer.

After the process completes, confirm the laptop reaches its initial setup screen without displaying your old account or desktop. Leave it at setup for the recipient. If the reset reports an error or sends you back to your old profile, resolve that problem before the device leaves your possession.

Prepare a Phone or Tablet for Trade-In

Hands holding an old smartphone beside an open shipping box
Verify that your backup and account transfer work before packing the old phone.

Verify that your contacts, photos, messages, and authenticator entries work on the replacement device. Follow the manufacturer’s transfer checklist for your model. Some phones have a physical SIM or microSD card that you can remove and keep. With an eSIM, confirm your number works on your new phone before you erase the old profile. For company-owned equipment, let the device administrator handle management and enrollment.

Use the phone’s built-in full reset. On an iPhone or iPad, follow Apple’s sale or trade-in steps and use Erase All Content and Settings. Check that the old device is ready for a new owner, including any account or Activation Lock steps. On Android, use the manufacturer’s trade-in instructions to remove your accounts from the old device and then run the factory reset through Settings. The menu names vary by model. Removing an account from the device is a local step. The account and its online data can still exist afterward.

Make sure the welcome screen appears after the reset. A phone that still asks the buyer to sign in with its previous owner’s account needs more work. Use the manufacturer’s instructions to resolve it while you have the device. If a reset was started remotely, verify it completed before you treat the phone as ready to sell or return.

Handle Failed Drives and Check the Result

A broken laptop can still contain readable storage. The fault might be in the display, battery, or motherboard. If the storage is removable and you are authorized to handle it, separate the storage decision from the rest of the hardware. If it is soldered in place, or if the device has a damaged battery, ask an appropriate repair or recycling provider how they handle equipment that cannot be reset.

For an organization, confirm that the disposal provider can handle the media type and supply any documentation your policy requires. Check the asset or drive serial number against the service record. If a software method was used, keep completion and error information with the record. The organization can then decide whether the result satisfies the requirement for that asset.

For personal equipment, work through a short handover check. Make sure your backup opens, removable cards have been accounted for, and the intended reset or erase finished successfully. Check for any remaining accounts or ownership locks. A setup screen is useful for confirming that a device is ready for an ordinary handover. Where your policy calls for stronger evidence, use the sanitization results and disposal records required for that media.

Finally, review any separate copies you may have left elsewhere. Files in cloud storage, backup drives, or shared folders have their own retention and deletion settings. Keeping an intentional backup is often exactly what you want. The aim is to know which copies you still control and what data, if any, will travel with the device.

John McLane profile photo

Legal technology writer with a J.D. and 15+ years of experience in federal and state courts. Covers data privacy, compliance, cybersecurity regulation, and technology-related legal issues for businesses and IT teams.