Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

IT Support & Help Desk Fundamentals  Module 11 – Backups, recovery and data disposal

Wipe, destroy and dispose of devices properly

Choose clear, purge or destroy with NIST SP 800-88, erase Macs, PCs and phones without locking out the next owner, and hand e-waste to a registered recycler.

  • Intermediate
  • 20 minutes
  • Examples run with Python 3.14.8 and Pyodide 314.0.7
  • By MySmartCoPilot
Free lesson, Pro answers: 20 minutes
Free: the whole lesson. With a pass: the model answers to its 2 interview questions.

What you will learn

  • Explain why a delete or a quick format leaves data recoverable, and why overwriting falls short on flash drives
  • Choose clear, purge or destroy for a device from whether it works, its data and where it goes next
  • Use the built-in erase of a Mac, a Windows PC and a phone after removing the owner's accounts
  • Decide when a drive must be destroyed, and by what method
  • Record a disposal with a certificate of sanitisation and hand the device to a registered recycler

Before you start

What you’ll learn · Before you start

What you will learn

  • Explain why a delete or a quick format leaves data recoverable, and why overwriting falls short on flash drives
  • Choose clear, purge or destroy for a device from whether it works, its data and where it goes next
  • Use the built-in erase of a Mac, a Windows PC and a phone after removing the owner's accounts
  • Decide when a drive must be destroyed, and by what method
  • Record a disposal with a certificate of sanitisation and hand the device to a registered recycler

Before you start

On this page

A laptop that held three years of payroll files goes to a buyer next week, and the plan is a quick format. Microsoft documents what that does: it deletes the file table and the root directory, and the option that zeroes every sector is ignored in a quick format. The contents of the files stay on the drive, and recovery tools exist to find exactly that.

Disposal is the last moment a support desk controls a device’s data. This lesson works through the decision: why delete and format are not erasure, NIST’s three methods of clear, purge and destroy, why encryption from the first day reduces erasure to destroying one key, the erase tools built into Macs, Windows PCs and phones, when only destruction will do, and the record and the registered recycler that close a device’s life in India.

A delete or a quick format removes the index, not the data

Deleting a file removes its entry from the file system’s index; the blocks that held its contents are only marked as available for reuse. That is why restore and data recovery can still bring a deleted file back from an image of a healthy drive. A quick format: A format that deletes a volume's file table and root directory and builds an empty one, without overwriting the files' contents, which recovery tools can still find. goes one step further and builds a new, empty index, but it leaves the contents alone as well. Microsoft’s format reference says that /Q deletes the file table and the root directory, while /P zeroes every sector and is ignored when /Q is given.

data sanitisation: Making the data on a storage device unrecoverable for a given level of effort. NIST SP 800-88 names three methods for it: clear, purge and destroy. means making the data itself unrecoverable, and a full overwrite looks like the answer. On a hard drive it is: every block is written in place. A solid-state drive (SSD): A storage device with no moving parts, using flash memory for faster reads and writes than an HDD. More in “Storage drives, drive health and RAID” works differently. Its controller writes new data to fresh flash blocks and keeps spare blocks the computer cannot address, so an overwrite through the normal interface may never reach an old copy. NIST warns that repeated overwrite passes give very little protection on SSDs with spare capacity.

The program below models three drives in memory: a hard drive, an SSD with 4 spare blocks for every 12 it shows, and the same SSD encrypted. Each saves three files, deletes one, quick-formats and then either zeroes every block or erases the encryption key. Read the scan column: it counts the files a lab could still read straight from the chips.

What delete, quick format, overwrite and key erase leave Python · quick-format/quick_format.py
"""
What a delete, a quick format, an overwrite and a key erase leave behind.

Three small model drives live in memory, so nothing on this computer is
touched. The hard-drive model writes every block in place. The SSD models
have spare blocks, as flash drives do: a write goes to a fresh physical
block, and the old block keeps its data until the controller reuses it.
The encrypted SSD stores only ciphertext, made with a key the drive keeps.
After each step a raw scan reads every physical block, as a recovery lab
would, decrypting with the drive's key while that key still exists, and
lists the files whose content it can still read.
"""

import hashlib

BLOCK = 16
FILES = {  # name -> (content, the logical blocks it occupies)
    "offer.pdf": (b"OFFER LETTER: CTC 18 LPA, JOIN 1 DEC", [0, 1, 2]),
    "photo.jpg": (b"JPEG DATA: TEAM OFFSITE, GOA", [3, 4]),
    "payroll.csv": (b"PAYROLL: EMP 1042, ACCT 50100012345678", [8, 9, 10]),
}


def chunks(data, count):
    data = data.ljust(count * BLOCK, b".")
    return [data[i * BLOCK:(i + 1) * BLOCK] for i in range(count)]


def xor_block(data, key, physical_no):
    stream = hashlib.sha256(key + physical_no.to_bytes(4, "big")).digest()[:BLOCK]
    return bytes(a ^ b for a, b in zip(data, stream))


class Drive:
    """A drive of `logical` blocks the user can address, plus `spare` hidden ones."""

    def __init__(self, logical, spare=0, key=None):
        self.chips = [bytes(BLOCK)] * (logical + spare)  # physical blocks
        self.where = list(range(logical))  # logical block -> physical block
        self.free = list(range(logical, logical + spare))  # spare blocks, in order of use
        self.key = key
        self.table = {}

    def write(self, logical_no, data):
        if self.free:  # flash: write to a fresh block, keep the old one for later reuse
            old = self.where[logical_no]
            self.where[logical_no] = self.free.pop(0)
            self.free.append(old)
        physical_no = self.where[logical_no]
        if self.key is not None:  # the chips hold ciphertext only
            data = xor_block(data, self.key, physical_no)
        self.chips[physical_no] = data

    def save(self, name, content, blocks):
        for logical_no, part in zip(blocks, chunks(content, len(blocks))):
            self.write(logical_no, part)
        self.table[name] = blocks

    def raw_scan(self):
        """The files whose first block a lab can still read from the chips."""
        if self.key is None:
            raw = b"".join(self.chips)
        else:
            raw = b"".join(xor_block(c, self.key, i) for i, c in enumerate(self.chips))
        return sorted(name for name, (content, _) in FILES.items() if content[:BLOCK] in raw)


def report(step, drive):
    found = drive.raw_scan()
    print(f"  {step:<20} table {len(drive.table)}, scan {len(found)}: {' '.join(found) or '-'}")


def run(title, drive):
    print(title)
    for name, (content, blocks) in FILES.items():
        drive.save(name, content, blocks)
    report("3 files saved", drive)
    del drive.table["payroll.csv"]
    report("payroll.csv deleted", drive)
    drive.table.clear()
    report("quick format", drive)
    if drive.key is None:
        for logical_no in range(len(drive.where)):
            drive.write(logical_no, bytes(BLOCK))
        report("every block zeroed", drive)
    else:
        drive.key = None  # cryptographic erase: only the key is destroyed
        report("key erased", drive)
    print()


run("Hard drive model, 12 blocks written in place:", Drive(12))
run("SSD model, 12 blocks plus 4 spare:", Drive(12, spare=4))
run("Encrypted SSD model, 12 blocks plus 4 spare:", Drive(12, spare=4, key=b"model key"))

Output

Hard drive model, 12 blocks written in place:
  3 files saved        table 3, scan 3: offer.pdf payroll.csv photo.jpg
  payroll.csv deleted  table 2, scan 3: offer.pdf payroll.csv photo.jpg
  quick format         table 0, scan 3: offer.pdf payroll.csv photo.jpg
  every block zeroed   table 0, scan 0: -

SSD model, 12 blocks plus 4 spare:
  3 files saved        table 3, scan 3: offer.pdf payroll.csv photo.jpg
  payroll.csv deleted  table 2, scan 3: offer.pdf payroll.csv photo.jpg
  quick format         table 0, scan 3: offer.pdf payroll.csv photo.jpg
  every block zeroed   table 0, scan 1: payroll.csv

Encrypted SSD model, 12 blocks plus 4 spare:
  3 files saved        table 3, scan 3: offer.pdf payroll.csv photo.jpg
  payroll.csv deleted  table 2, scan 3: offer.pdf payroll.csv photo.jpg
  quick format         table 0, scan 3: offer.pdf payroll.csv photo.jpg
  key erased           table 0, scan 0: -

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 quick_format.py

After the delete and the quick format, all three files are still readable on every model, although the file table lists none. Zeroing every block clears the hard drive, but on the plain SSD payroll.csv survives in spare blocks the overwrite never reached. On the encrypted SSD, erasing the key alone leaves nothing readable, without rewriting a block.

A quick format before a sale

Wrong: quick-format the laptop and hand it to the buyer, because the drive now looks empty. Right: treat it as a device leaving the organisation and sanitise it with a method from the next section, then record what was done.

Checkpoint

Check: What a delete and a quick format leave behind

  1. One question In the example, every block was zeroed on the hard-drive model and on the plain SSD model. Which still had a readable file afterwards, and why?

    Choose one answer.

    Show the answer: One question

    Answer: The SSD, because the old payroll blocks sat in spare blocks the overwrite never reached

    A hard drive writes each block where it was, so zeroing every block overwrites every copy. An SSD's controller writes to fresh blocks and keeps spare ones the computer cannot address, which is why NIST warns that overwriting gives SSDs with spare capacity very little protection.

Clear, purge and destroy are NIST’s three levels

NIST SP 800-88 Rev. 2, Guidelines for Media Sanitization, defines sanitisation as making access to the data infeasible for a given level of effort, and it names three methods that differ in the effort they defeat:

  • clear (sanitisation): The NIST sanitisation method that overwrites or resets every location a user can address, through the device's normal interface. It stops simple recovery tools, and the device keeps working. uses the device’s own interface on every location a user can address, for example an overwrite or a reset to factory state. It protects against simple recovery tools through that same interface, and the device works as before.
  • purge (sanitisation): The NIST sanitisation method that makes recovery infeasible even with laboratory techniques while the device stays reusable, using a technique suited to the media, such as cryptographic erase. uses a technique chosen for the media, physical or logical, so that recovery is infeasible even with a laboratory’s best techniques, and the device can still be reused. NIST says to use purge instead of clear whenever possible, and points to the IEEE 2883 standard for the techniques that suit each kind of media.
  • destroy (sanitisation): The NIST sanitisation method that makes recovery infeasible even in a laboratory and leaves the media unable to store data, for example by disintegrating or incinerating it. makes recovery infeasible in a laboratory too, and leaves the media unable to store data again.

Which method fits depends on three facts about the device: whether it still works, how sensitive its data is and where it goes next. Answer the three questions in the table below and watch which methods it rules out:

Interactive · answer and compare Clear, purge or destroy? Answer three questions about the device in front of you. The table shows what each method gives, and what your answers rule out.
Does the drive still start and answer its commands?
Where does the device go next?
Does your policy rate its data as high sensitivity?

Answer the questions above: the table then marks what fits your case and says why the rest does not.

NIST's three sanitisation methods against what they protect and keep
Method Resists lab recovery Device usable after Works on a dead drive Reaches spare blocks
Clear What it does: overwrite or factory reset Poor stops simple recovery through the normal interface only Good the device works as before Poor needs a drive that still answers Poor writes only the blocks the user can address
Purge What it does: a technique made for the media Good recovery infeasible even in a lab Good the device stays reusable Poor needs a drive that still answers Good cryptographic erase leaves only unreadable ciphertext
Destroy What it does: the media itself is destroyed Good recovery infeasible even in a lab Poor nothing is left to reuse Good works whatever state the drive is in Good the chips themselves are destroyed
How the answers decide
  • “Does the drive still start and answer its commands?” No, it has failed: rules out Clear and Purge. An overwrite or an erase command needs a drive that answers. A failed drive can only be destroyed, by a vendor that issues a certificate.
  • “Does your policy rate its data as high sensitivity?” Yes, high: rules out Clear and Purge. This lesson follows a common policy: high-sensitivity media is destroyed even when purge would work. Follow your own written policy.
  • “Where does the device go next?” Out of the organisation: rules out Clear. Outside your control, assume someone may try lab recovery. NIST also says to use purge instead of clear whenever possible.
  • “Where does the device go next?” Another employee: adds a caveat to Destroy. The device stays in use, so destroying it wastes it. Clear protects against simple recovery; purge is better where it is as easy, as with cryptographic erase.

The policy in the table is a common one, and this lesson uses it throughout: a failed drive is destroyed, high-sensitivity media is destroyed, a device that leaves the organisation is purged, and a device that stays with another employee is at least cleared. Your organisation’s written policy may set the lines elsewhere, and it is the one to follow.

Checkpoint

Check: Clear, purge and destroy

  1. One question A working laptop with moderate-sensitivity data is being sold to a member of the public. Which method does this lesson's policy use?

    Choose one answer.

    Show the answer: One question

    Answer: Purge

    Three facts decide the method: the drive works, the data is moderate and the device leaves the organisation. That combination is a purge under this lesson's policy.

Cryptographic erase destroys the key, not every block

If every block on a drive was encrypted from the first day, there is a faster purge than rewriting the blocks: destroy the key. NIST calls this cryptographic erase: A purge technique for encrypted media: the keys that encrypt the data are destroyed, so every block, spare ones included, holds ciphertext that can no longer be read. No copy of the key may survive elsewhere. and classes it as a purge technique. Without the key, every block, the spare ones included, holds ciphertext that nobody can turn back into data, which is what the encrypted SSD in the first example showed.

The platforms build on this. A Mac with Apple silicon or the T2 chip encrypts its internal volume even when FileVault: Apple's full-disk encryption for the Mac startup disk. The login password opens the disk at start-up, and a recovery key or an institutional key can open it if that password is lost. More in “BitLocker and FileVault recovery keys” was never turned on; Apple’s platform security guide says that erasing the media key that wraps the volume keys leaves the volume cryptographically inaccessible, and Apple designed that key to be erased on demand, by Erase All Content and Settings or by a remote wipe from a device management service. Apple’s Disk Utility guide adds that secure erase options are not available for an SSD and suggests turning on FileVault when you start using one. Android has supported file-based encryption since Android 7.0, and Windows PCs use BitLocker or device encryption, as BitLocker and FileVault keys explains.

The table compares the two purge approaches on an SSD:

Approach Reaches spare blocks Speed Works on failed drive
Overwrite every block No Hours No
Cryptographic erase Yes Seconds No

NIST names two limits. Cryptographic erase is only as good as the key’s disappearance: it should not be trusted when copies of the key were backed up or placed in key escrow: Storing a copy of an encryption recovery key with a third party that can return it, such as a directory or a management service, so a lost device or forgotten password is not a lost disk. More in “BitLocker and FileVault recovery keys”, unless the organisation knows exactly where those copies are and sanitises them under their own policy. And for data that must stay secret for decades, ciphertext left on the media may one day be broken, so cryptographic erase may not be enough.

Key idea

Encrypt every device from its first day. At the end of its life, destroying the key purges every block at once, including the spare blocks that no overwrite can reach.

Checkpoint

Check: Cryptographic erase and its limits

  1. One question An SSD was encrypted from its first day, and a copy of its recovery key is kept in the company directory. You destroy the drive's key. When does NIST say to trust this cryptographic erase?

    Choose one answer.

    Show the answer: One question

    Answer: Only if the organisation knows where every copy of the key is and sanitises those copies too

    Cryptographic erase destroys the key instead of the data, so it is only as good as the key's disappearance. Backed-up or escrowed copies of the key need their own sanitisation policy.

Built-in erase tools, after the accounts come off

Every platform ships an erase tool, and every one of them has a step that must come first: removing the owner’s accounts. An Apple or Google account left on a device links it to that owner, and an erased phone can then refuse to work for anyone else. The table lists what each platform needs:

Device Built-in erase Do this first Check afterwards
Mac, Apple silicon or T2 Erase All Content and Settings Back up Setup Assistant appears
Older Mac Disk Utility in macOS Recovery Back up, sign out of iCloud macOS reinstalls
Windows PC Reset this PC, Remove everything Back up Windows setup appears
iPhone or iPad Erase All Content and Settings Sign out of iCloud, unpair the watch Setup screen appears
Android phone Factory reset in Settings Remove the Google Account No account prompt at setup

A Mac with Apple silicon or a T2 chip that runs macOS Monterey 12 or later has Erase All Content and Settings. It asks for the Apple Account password, signs the Mac out of Apple services, and restarts into a setup assistant as if the Mac were new. On an older Mac, sign out of iCloud first, then erase it in Disk Utility from macOS Recovery, as install and erase macOS shows. On a Windows PC, Reset this PC: The Windows recovery option that reinstalls Windows on the same PC. It always removes apps and settings, and you choose to keep personal files or remove everything, from Settings or from WinRE. More in “Reset, reimage or repair: choose and do it” with Remove everything reinstalls Windows; for a PC you donate, recycle or sell, Microsoft says to turn on Clean data, which takes longer but makes removed files harder to recover.

On an iPhone, sign out of iCloud and the stores, unpair an Apple Watch, then choose Settings, General, Transfer or Reset iPhone, Erase All Content and Settings. On Android, removing the Google Account turns off factory reset protection: Android's device protection: after a factory reset the phone asks for the screen lock or the Google Account that was on it, and cannot be used if that is not given. More in “Reset, reimage or repair: choose and do it”; Google adds that after a recent password change you should wait 24 hours before a factory reset. A company device enrolled in mobile device management: Software that enrols phones, tablets and computers, sends them settings and apps, checks them against a security policy and can lock or wipe them remotely. Microsoft Intune is one example. More in “MDM, BYOD and lost or stolen devices” is wiped and then removed from it, as MDM, BYOD and lost devices covers.

Erasing a phone with the account still on it

Wrong: factory-reset a returned Android phone first and remove the account later. The reset phone then asks for the previous owner’s Google Account at setup, and nobody else can use it. Right: remove the account, then reset.

Checkpoint

Check: Built-in erase tools and the account step

  1. One question A returned Android phone is going to a new employee. What do you do first?

    Choose one answer.

    Show the answer: One question

    Answer: Remove the previous user's Google Account, then factory-reset the phone

    Every built-in erase comes after the accounts come off. On Android, removing the Google Account turns off factory reset protection; then the factory reset leaves a phone the next person can set up.

A drive that cannot be sanitised is destroyed

A failed drive cannot be cleared or purged, because both need a drive that answers its commands, and NIST notes that destruction may be the only option when media has failed or its interface is no longer supported. Destruction is also the method when policy says the data is too sensitive for anything else, as in this lesson’s policy for high-sensitivity media.

NIST lists five destruction techniques, with a warning about data density:

Technique Process NIST note on dense media
Disintegrate Break into particles so small nothing is recognisable No warning
Incinerate Burn to ash No warning
Melt Liquefy with heat No warning
Pulverise Crush or grind to powder Avoid except lowest categories
Shred Cut or tear into small particles Avoid except lowest categories

Two warnings come with the list. Bending, cutting or drilling a hole through a drive may damage only part of it and leave the rest readable in a laboratory. And as data density rises, NIST advises against pulverising and shredding for anything but the lowest security categories of data, because a small fragment of a dense chip can still hold a lot.

In practice a support desk rarely destroys media itself. A destruction vendor collects the drives, destroys them, ideally with a witness from the organisation present, and issues a certificate of sanitisation: A signed record of how a device was sanitised: its make, model, serial number and media type, the method, technique and tool, how the result was verified and where the device went. that lists the serial number of every drive. A failed drive that policy says to destroy does not go back to the maker for a warranty swap with its data on it.

Batteries and broken screens

A device’s battery is waste of its own, with its own rules, as the next section shows. Handle swollen batteries and broken screens as upgrade and repair safely describes.

Checkpoint

Check: When and how a drive is destroyed

  1. One question A laptop's SSD has failed and no longer answers. Its data is rated moderate, and the laptop goes to a recycler. Which method fits?

    Choose one answer.

    Show the answer: One question

    Answer: Destroy, through a vendor that issues a certificate

    NIST notes that destruction may be the only option when media has failed. The vendor's certificate, with the drive's serial number, is the record that it happened.

The record and the registered recycler close the asset

A disposal is finished only when it is written down. NIST’s sample certificate of sanitisation asks for the device’s make, model, serial number and media type, the method and technique used, the tool and its version, how the result was verified, where the device went (internal reuse, external reuse, a recycling facility or the manufacturer) and a signature. The device’s entry in the asset register: An organisation's list of its devices, each with an asset tag, serial number, user and status. A device's entry is closed with its disposal record when it leaves. is closed with the same details.

The program below checks two sample records against those fields before they are filed. Read why the second is refused:

Checking disposal records before they are filed Python · disposal-record/disposal_record.py
"""
Check disposal records before a device leaves the building.

The fields follow the sample certificate of sanitization in NIST SP 800-88
Rev. 2 (media information, sanitization details, destination), plus the
asset tag that closes the entry in the asset register. Both records are
made-up samples: the serial numbers and the recycler are not real.
"""

REQUIRED = ["asset_tag", "serial", "media", "method", "technique", "tool", "verified", "destination", "operator"]
METHODS = {"clear", "purge", "destroy"}
DESTINATIONS = {"internal reuse", "external reuse", "registered recycler", "manufacturer"}


def problems(record):
    """Return what stops the record from being filed, as a list of short reasons."""
    found = [f"missing {field}" for field in REQUIRED if not record.get(field)]
    if record.get("method") and record["method"] not in METHODS:
        found.append(f"method must be clear, purge or destroy, not {record['method']!r}")
    if record.get("destination") and record["destination"] not in DESTINATIONS:
        found.append(f"unknown destination {record['destination']!r}")
    if record.get("verified") == "no":
        found.append("sanitisation not verified")
    if record.get("method") == "destroy" and not record.get("certificate"):
        found.append("destroyed by a vendor without a certificate number")
    if record.get("destination") == "external reuse" and record.get("method") == "clear":
        found.append("clear is not enough for a device leaving the organisation")
    return found


RECORDS = [
    {
        "asset_tag": "LAP-0311",
        "serial": "SAMPLE-7Q2K-0311",
        "media": "NVMe SSD, 512 GB, encrypted from the first day",
        "method": "purge",
        "technique": "cryptographic erase",
        "tool": "Erase All Content and Settings",
        "verified": "yes, Setup Assistant shown",
        "destination": "external reuse",
        "operator": "service desk, technician 2",
    },
    {
        "asset_tag": "SRV-0042",
        "serial": "",
        "media": "SATA HDD, 2 TB, failed",
        "method": "destroy",
        "technique": "disintegrate",
        "tool": "vendor disintegrator",
        "verified": "yes",
        "destination": "registered recycler",
        "operator": "service desk, technician 1",
    },
]

for record in RECORDS:
    issues = problems(record)
    print(f"Record {record['asset_tag']}: {'ready to file' if not issues else 'refused'}")
    if issues:
        for issue in issues:
            print(f"  - {issue}")
    else:
        for field in REQUIRED:
            print(f"  {field:<12} {record[field]}")
    print()

Output

Record LAP-0311: ready to file
  asset_tag    LAP-0311
  serial       SAMPLE-7Q2K-0311
  media        NVMe SSD, 512 GB, encrypted from the first day
  method       purge
  technique    cryptographic erase
  tool         Erase All Content and Settings
  verified     yes, Setup Assistant shown
  destination  external reuse
  operator     service desk, technician 2

Record SRV-0042: refused
  - missing serial
  - destroyed by a vendor without a certificate number

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 disposal_record.py

A record with no serial number cannot prove which drive was destroyed, and a destruction without the vendor’s certificate number has nothing to point at if an auditor asks.

In India, the hand-over is set by law. Old laptops and phones are e-waste: Discarded electrical and electronic equipment, such as old laptops, phones and tablets. In India, the E-Waste (Management) Rules, 2022 set who may take it and recycle it. under the E-Waste (Management) Rules, 2022. An organisation that used at least 1,000 units of the listed equipment in a financial year is a bulk consumer: Under India's E-Waste (Management) Rules, 2022, an entity that used at least 1,000 units of the listed electrical and electronic equipment in a financial year. It hands its e-waste only to a registered producer, refurbisher or recycler., and must hand its e-waste only to a registered producer, refurbisher or registered recycler: A recycler registered on the Central Pollution Control Board's portal under India's E-Waste (Management) Rules, 2022, and one of the parties to which a bulk consumer may hand its e-waste.; the Central Pollution Control Board publishes the list of recyclers and dismantlers. Under the Battery Waste Management Rules, 2022, a consumer keeps waste batteries apart from other waste and gives them to an entity that collects, refurbishes or recycles them.

Step through the whole chain below, from the register entry to the recycler:

Interactive · stage by stage From the asset register to the registered recycler Step through the end of a laptop's life; the branch is a check that failed
A device's last steps, from the register to the recycler, step 6 of 6. Showing Asset register (Marked for disposal), Back up, sign out (Accounts removed), Sanitise (Method applied), Verify (Checked), Certificate (Record filed), Registered recycler (Entry closed). In focus: Registered recycler.Check failedAsset registerMarked for disposalBack up, sign outAccounts removedSanitiseMethod appliedVerifyCheckedCertificateRecord filedRegistered recyclerEntry closed

The drawing shows the whole scene; its 6 steps are listed below.

Every step as text
  1. Find it in the register. Look the laptop up by its asset tag and note its serial number, its drive and who used it.
  2. Back up and sign out. Copy the data the business keeps, then remove the user's accounts so the next owner is not locked out.
  3. Sanitise. Clear, purge or destroy, as the policy says for its media, its data and where it goes next.
  4. Verify the result. Check that the device starts at its setup screen, or that the vendor destroyed it. If not, sanitise again.
  5. File the certificate. Record the serial number, the method, the tool, the check and who did it, and keep the vendor's certificate.
  6. Hand it to a registered recycler. Give the device and its battery to a registered recycler or the producer's take-back, and close the register entry.

Checkpoint

Check: The disposal record and the registered recycler

  1. One question Why did the example refuse the second record? Select all that apply.

    Choose every answer that is right.

    Show the answer: One question

    Answer:

    • It has no serial number
    • The drive was destroyed, but no certificate number is recorded

    The program checks the record against the fields NIST's sample certificate asks for. The second record lacks the serial number and the certificate number, so it cannot be filed.

Practise

Turn this lesson’s policy into code: the function returns the method for a device from whether it works, its data and where it goes next.

Exercise · Easy · Python

Choose clear, purge or destroy for a device

Write sanitisation_method(device) so that it returns the method this lesson's policy uses for a device at the end of its life: "clear", "purge" or "destroy". device is a dictionary with three keys:

  • "works": True when the drive still starts and answers its commands, False when it has failed.
  • "data": the sensitivity the organisation gave its data, "low", "moderate" or "high".
  • "next": where the device goes next, "reuse inside" (another employee) or "leaves" (sold, donated, returned under warranty or recycled).

The policy, in order:

  1. A device that does not work is destroyed: nothing can clear or purge a drive that no longer answers.
  2. A device that holds high-sensitivity data is destroyed, wherever it goes.
  3. A device that leaves the organisation is purged.
  4. A device reused inside the organisation is cleared.

So {"works": True, "data": "moderate", "next": "leaves"} gives "purge", and the same device with "works": False gives "destroy".

Starter code · sanitisation_method.py

def sanitisation_method(device):
    """Return "clear", "purge" or "destroy" for a device at the end of its life."""
    return "clear"
The sample tests · test_sanitisation_method.py
from sanitisation_method import sanitisation_method


def device(works=True, data="moderate", goes="reuse inside"):
    return {"works": works, "data": data, "next": goes}


def test_reuse_inside_is_cleared():
    """clears a working device that stays inside the organisation"""
    assert sanitisation_method(device(data="low")) == "clear"
    assert sanitisation_method(device(data="moderate")) == "clear"


def test_leaving_is_purged():
    """purges a working device that leaves the organisation"""
    assert sanitisation_method(device(goes="leaves")) == "purge"
    assert sanitisation_method(device(data="low", goes="leaves")) == "purge"


def test_failed_drive_is_destroyed():
    """destroys a drive that no longer works, wherever it goes"""
    assert sanitisation_method(device(works=False)) == "destroy"
    assert sanitisation_method(device(works=False, data="low", goes="leaves")) == "destroy"


def test_high_sensitivity_is_destroyed():
    """destroys high-sensitivity media even when it still works"""
    assert sanitisation_method(device(data="high")) == "destroy"
    assert sanitisation_method(device(data="high", goes="leaves")) == "destroy"
A hint

Check the rules in the order the prompt lists them and return as soon as one matches. Both reasons to destroy come first, because a device that leaves the organisation can still be one that must be destroyed.

The sample tests run on this device, in your browser (Pyodide): nothing is sent to mysmartcopilot.com. The first run downloads Python (about 13.5 MB), which is kept for the next runs. A check in your browser is feedback for you, not proof that the code is right for every input.

Practice that adapts to you

Practise this lesson

14 questions about 6 ideas of this lesson. Each answer is explained at once, and what you get right is kept in this browser.

  1. Question 1 of 14 According to Microsoft's format reference, what does a quick format (/Q) delete?

    Choose one answer.

    Show the answer: Question 1 of 14

    Answer: The file table and the root directory

    A quick format builds a new, empty index over the old contents, which is why recovery tools can still find them.

  2. Question 2 of 14 Why can overwriting every block be enough on a hard drive but not on an SSD?

    Choose one answer.

    Show the answer: Question 2 of 14

    Answer: A hard drive writes each block in place, while an SSD writes to fresh blocks and keeps spare ones out of reach

    The difference is where a write lands. That is why NIST warns against relying on overwrites for SSDs and why cryptographic erase suits flash media.

  3. Question 3 of 14 Which method protects only against simple recovery through the device's normal interface?

    Choose one answer.

    Show the answer: Question 3 of 14

    Answer: Clear

    Clear defeats simple recovery, purge defeats a laboratory and keeps the device, and destroy defeats a laboratory and ends the device.

  4. Question 4 of 14 A working PC with low-sensitivity data moves to a new employee in the same team. What is the least this lesson's policy asks for?

    Choose one answer.

    Show the answer: Question 4 of 14

    Answer: Clear

    Reuse inside the organisation is the one case where clear is enough under this policy, and purge is better wherever it is just as easy.

  5. Question 5 of 14 Which of NIST's three methods does cryptographic erase belong to?

    Choose one answer.

    Show the answer: Question 5 of 14

    Answer: Purge

    Destroying the keys that encrypt the data makes recovery infeasible while the device stays reusable, which is exactly what purge means.

  6. Question 6 of 14 Why does a cryptographic erase cover an SSD's spare blocks when an overwrite does not?

    Choose one answer.

    Show the answer: Question 6 of 14

    Answer: The spare blocks hold only ciphertext, and without the key it cannot be read

    In the example's encrypted SSD model, erasing the key alone left nothing readable, while zeroing the plain SSD left payroll.csv in a spare block.

  7. Question 7 of 14 Which Macs can use Erase All Content and Settings?

    Choose one answer.

    Show the answer: Question 7 of 14

    Answer: Macs with Apple silicon or the T2 chip, on macOS Monterey 12 or later

    On a Mac that cannot use it, sign out of iCloud first and erase the drive in Disk Utility from macOS Recovery.

  8. Question 8 of 14 A Windows PC is being donated to a school. Which Reset this PC choices fit?

    Choose one answer.

    Show the answer: Question 8 of 14

    Answer: Remove everything, with Clean data turned on

    Remove everything reinstalls Windows and removes files, apps and settings, and Clean data also cleans the drive. Back up and remove accounts before you start.

  9. Question 9 of 14 After a Google Account password was reset, how many hours does Google advise waiting before a factory reset?

    Type a number.

    Show the answer: Question 9 of 14

    Answer: 24 hours

    Google's factory-reset article asks you to wait 24 hours after a recent password reset before you factory-reset the device.

  10. Question 10 of 14 Why does NIST not count drilling a hole through a drive as destroying it?

    Choose one answer.

    Show the answer: Question 10 of 14

    Answer: It may damage only part of the drive and leave the rest readable in a laboratory

    Destruction means recovery is infeasible even in a laboratory. A hole leaves most of the platter or most of the chips intact.

  11. Question 11 of 14 A vendor offers to shred high-density SSDs that held high-sensitivity data. What does NIST's guidance suggest?

    Choose one answer.

    Show the answer: Question 11 of 14

    Answer: Ask for a different technique, such as disintegration or incineration, because NIST advises against shredding for all but the lowest categories

    NIST lists five destructive techniques but advises against pulverise and shred for anything but the lowest security categories of data on dense media.

  12. Question 12 of 14 Under the E-Waste (Management) Rules, 2022, at least how many units of listed equipment must an entity use in a financial year to be a bulk consumer?

    Type a number.

    Show the answer: Question 12 of 14

    Answer: 1000 units

    The rules define a bulk consumer as an entity that used at least 1,000 units of the equipment listed in Schedule I in the financial year.

  13. Question 13 of 14 An office that is a bulk consumer under the E-Waste (Management) Rules, 2022 retires 60 laptops. To whom may it hand them?

    Choose one answer.

    Show the answer: Question 13 of 14

    Answer: Only to a registered producer, refurbisher or recycler

    Sanitising and recycling are two separate duties: the data has to be gone, and the device has to reach a registered producer, refurbisher or recycler.

  14. Question 14 of 14 Under the Battery Waste Management Rules, 2022, what must a consumer do with waste batteries?

    Choose one answer.

    Show the answer: Question 14 of 14

    Answer: Keep them apart from other waste and give them to an entity that collects, refurbishes or recycles them

    A consumer discards waste batteries separately from other waste streams and gives them to an entity engaged in collection, refurbishment or recycling.

Interview questions

Warm-up (fresher to 2–5 years): a colleague plans to quick-format a laptop’s SSD before it goes to a buyer. What do you tell them, and what do you do instead?

A quick format only builds a new, empty file table; the files’ contents stay on the drive, where recovery tools find them. Even a full overwrite is not enough on an SSD, because its spare blocks are out of reach of the operating system. The laptop leaves the organisation, so it needs a purge, and the quickest purge is a cryptographic erase. On a recent Mac, Erase All Content and Settings does exactly that: it erases the key the always-encrypted volume depends on. On a Windows PC, Reset this PC with Remove everything and Clean data is Microsoft’s choice for a PC that is sold, and I check our policy on whether that is enough for an SSD that was never encrypted. Before any erase, I back up and remove the user’s accounts; afterwards I check the setup screen and record the serial number, the method and the check.

Two harder disposals follow: a Mac whose storage has to travel with its board to a warranty repair, and an office refresh whose receipt comes back three devices short. Decide what you would check first in each case, then open it:

Model answers open with any pass: ₹79 for 1 week ($2.99), one payment that never renews.

  1. Mid to senior

    A MacBook with Apple silicon that held payroll data, which your policy rates high, needs a new logic board under warranty. Its storage is part of that board, and the maker wants the old board back. The Mac still starts. What do you do before it ships, and how do you prove it later?

    Model answer, Pro. Model answers open with any pass; prices are in the notice on this page. First step and follow-ups

  2. Mid to senior

    Your office in India, a bulk consumer under the E-Waste (Management) Rules, 2022, retired 40 laptops and 12 phones. Four failed laptops had their drives destroyed by a vendor. The recycler's receipt lists 49 serial numbers. Your register has 52 lines. What do you do now, and what changes for the next refresh?

    Model answer, Pro. First step and follow-ups

Flashcards · 6 cards

Recall it, then check

Say the answer to yourself before you look: recalling it is what makes it stick.

  1. Why is a quick format not enough before a laptop goes to a buyer?

    It only builds an empty file table, so the files' contents stay on the drive for recovery tools to find. On an SSD even an overwrite cannot reach the spare blocks.

  2. What are the three sanitisation methods of NIST SP 800-88?

    Clear defeats simple recovery tools. Purge defeats a laboratory and keeps the device usable. Destroy defeats a laboratory and ends the device.

  3. What does cryptographic erase destroy, and when does it fail?

    The key rather than every block, so all the data, spare blocks included, becomes ciphertext nobody can read. It fails if another copy of the key survives in a backup or an escrow.

  4. Why encrypt every device from its first day?

    So that at the end of its life, destroying the key purges every block at once, including spare blocks that no overwrite can reach.

  5. What comes before and after a built-in erase on a Mac, a PC or a phone?

    Before it, a backup and removing the owner's accounts. After it, a check of the setup screen.

  6. When is a drive destroyed instead of wiped, and what closes the disposal?

    When it has failed, or when policy rates it too sensitive: a vendor destroys it and issues a certificate listing serial numbers. The disposal closes when the record is filed and the device and its battery have gone to a registered recycler or the producer's take-back.

Key takeaways

  • A delete or a quick format removes only the index, so the contents stay recoverable, and an overwrite cannot reach the spare blocks of a flash drive.
  • NIST SP 800-88 names three methods: clear defeats simple recovery, purge defeats a laboratory and keeps the device usable, and destroy defeats a laboratory and ends the device.
  • Cryptographic erase is a purge that destroys the key instead of every block, provided no other copy of the key survives in a backup or an escrow.
  • Every built-in erase, on a Mac, a Windows PC, an iPhone or an Android phone, comes after backing up and removing the owner’s accounts, and ends with a check of the setup screen.
  • A failed drive, or one that policy rates too sensitive, is destroyed by a vendor that issues a certificate listing serial numbers.
  • A disposal is complete when the record is filed and, in India, the device and its battery have gone to a registered recycler or the producer’s take-back.

Terms in this lesson

asset register
An organisation's list of its devices, each with an asset tag, serial number, user and status. A device's entry is closed with its disposal record when it leaves.
bulk consumer
Under India's E-Waste (Management) Rules, 2022, an entity that used at least 1,000 units of the listed electrical and electronic equipment in a financial year. It hands its e-waste only to a registered producer, refurbisher or recycler.
certificate of sanitisation
A signed record of how a device was sanitised: its make, model, serial number and media type, the method, technique and tool, how the result was verified and where the device went.
clear (sanitisation)
The NIST sanitisation method that overwrites or resets every location a user can address, through the device's normal interface. It stops simple recovery tools, and the device keeps working.
cryptographic erase
A purge technique for encrypted media: the keys that encrypt the data are destroyed, so every block, spare ones included, holds ciphertext that can no longer be read. No copy of the key may survive elsewhere.
data sanitisation
Making the data on a storage device unrecoverable for a given level of effort. NIST SP 800-88 names three methods for it: clear, purge and destroy.
destroy (sanitisation)
The NIST sanitisation method that makes recovery infeasible even in a laboratory and leaves the media unable to store data, for example by disintegrating or incinerating it.
e-waste
Discarded electrical and electronic equipment, such as old laptops, phones and tablets. In India, the E-Waste (Management) Rules, 2022 set who may take it and recycle it.
purge (sanitisation)
The NIST sanitisation method that makes recovery infeasible even with laboratory techniques while the device stays reusable, using a technique suited to the media, such as cryptographic erase.
quick format
A format that deletes a volume's file table and root directory and builds an empty one, without overwriting the files' contents, which recovery tools can still find.
registered recycler
A recycler registered on the Central Pollution Control Board's portal under India's E-Waste (Management) Rules, 2022, and one of the parties to which a bulk consumer may hand its e-waste.

References

Report a problem with this lesson

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.