Data Safety

Securely Wiping a Drive Before You Give It Away

By TechKept Editorial Team · · 5 min read

Handing over an old computer, phone or external drive means handing over everything stored on it unless you wipe it properly. Photos, saved passwords, tax documents and browsing history can all be recovered from a drive that was only casually cleared. Anyone with free recovery software and a little patience can do it.

A proper wipe takes a short amount of preparation and the right method for your type of drive. Here is how to do it with confidence.

Why deleting is not enough

When you delete a file, the operating system generally just removes the entry that points to it and marks the space as available. The actual data stays on the drive until something happens to overwrite it. Recovery tools look for those leftover bytes and rebuild the files.

A quick format has a similar limit. It creates a fresh, empty file system but usually leaves the old data blocks in place. Emptying the recycle bin or trash has the same effect as ordinary deletion.

Step 1: Back up what you want to keep

A secure wipe is permanent, so first copy everything you need to another device. Check that the backup opens correctly before you continue. Also make a list of accounts, licenses and sign-ins tied to the device.

Step 2: Sign out and deregister

Sign out of accounts and services on the device. Turn off device-locking features such as activation lock or find-my-device protection, which can leave a reset phone or computer unusable for the next owner. Deauthorize software licenses that are limited to a number of machines.

Step 3: Turn on encryption, if possible

If a drive is encrypted, the data on it is scrambled with a key. Destroying that key makes the data unreadable, even if the physical contents remain. Many modern phones and laptops are encrypted by default. Where encryption is available but not enabled, turning it on before you reset the device adds a layer of safety, since the later wipe then discards the key.

Step 4: Choose the right wipe for the drive type

The correct method depends on the technology.

Hard disk drives

Traditional spinning drives overwrite in place, so a software overwrite works well. Tools can write patterns of data across every sector. For modern drives, a single full pass of zeros or random data is widely considered sufficient to prevent recovery with ordinary methods. Multiple passes are an older practice that gives little extra benefit on current drives.

A full overwrite of a large drive can take hours, so start it when you do not need the computer.

Solid state drives

SSDs behave differently. Their controllers spread writes across flash cells and keep spare areas, so overwriting the visible space does not guarantee that every cell was reached. The better options are:

  • ATA Secure Erase or the secure erase function: a command built into the drive that resets all cells, offered by many manufacturers' utilities.
  • Cryptographic erase: on self-encrypting drives, the controller destroys the internal encryption key, making the data unreadable.
  • Operating system reset with encryption: a factory reset on an encrypted system effectively discards the key.

Check the drive maker's tools, since many provide a dedicated secure erase utility.

Phones and tablets

Use the built-in factory reset after signing out of your accounts. Modern phones encrypt their storage, so a reset removes the keys and makes the old data unreadable. Remove the SIM card and any memory card, and wipe the memory card separately if you plan to give it away too.

Computers

On Windows and macOS, the reset options within system settings can erase the drive, and some include an option for a more thorough clean. If you are unsure that it is thorough, boot from a separate drive and use a trusted disk erase tool.

Step 5: Verify the result

After wiping, check that the drive is empty and that it looks uninitialized or freshly set up. You can try a recovery tool on it to see if anything shows up, though this is not a guarantee for SSDs. If you used encryption plus a reset, you can have reasonable confidence in the result.

Step 6: Decide whether to destroy the drive

If the data is extremely sensitive, or the drive is faulty and cannot be erased, physical destruction may be the better choice. Shredding or drilling through the platters of a hard disk, or breaking up the flash chips of an SSD, makes recovery impractical. Wear eye protection and handle debris carefully, or use a reputable local shredding or recycling service.

A drive that still works, though, can be erased and reused, which is better for the environment.

Common mistakes to avoid

  • Relying only on a quick format or on dragging files to the trash.
  • Forgetting secondary storage such as memory cards, extra internal drives and cloud-synced folders.
  • Wiping before checking that the backup works.
  • Leaving accounts signed in or device locks active.
  • Treating an SSD exactly like a hard disk.

A short checklist

  1. Back up and verify.
  2. Sign out and remove device locks.
  3. Encrypt if possible.
  4. Use the correct erase method for the drive type.
  5. Verify, then remove cards and SIMs.
  6. Destroy the drive only if it holds sensitive data and cannot be wiped.

Frequently Asked Questions

Is a factory reset enough?

On modern encrypted phones and many computers, a factory reset is generally effective because it discards the encryption key. On older or unencrypted devices, it may only remove the file entries, so use a dedicated erase tool.

Do I need to overwrite an SSD several times?

No. Repeated overwriting is unnecessary for SSDs and does not reliably reach every cell. Use the drive's secure erase command or cryptographic erase instead.

What about cloud accounts and synced files?

A wipe only affects the local device. Sign out of your cloud accounts and remove the device from each account's list so it no longer syncs, and delete any copies you do not want to keep online.

Related reading