IT Pro is supported by its audience. When you purchase through links on our site, we may earn an affiliate commission. Learn more

How to wipe a laptop easily and securely

A step-by-step guide on how to wipe a laptop safely, regardless of whether it's running Windows, Mac, or Linux

A male hand switching on a laptop computer

There could be any number of reasons why you want to wipe a laptop or other type of notebook. If it’s a company-issued device on which you’ve stored personal files or passwords in digital notes (you should never do this), for example, then it’s a good idea to wipe the hard drive before sending it back either for a replacement or before leaving the business. If you’re simply selling the laptop to a willing buyer, then that’s even more of a reason to wipe the laptop clean to prevent a potentially malicious buyer from using your sensitive data for personal gain.

Indeed, the longer the laptop was in your possession, the likelihood that it holds highly revealing data about you increases. Even if you’re gifting the laptop to a trusted friend, you don’t know where your data could end up if it’s mishandled. What’s worse, if you used the laptop for work purposes, either through your employer or own business, you could have customers’ data stored on there too which could open you up to regulatory punishment if said data isn’t protected.

With the stakes so high when it comes to wiping a laptop, naturally there may be some questions about how easily or comprehensively it’s possible to do it on your own. Fortunately, most of the major operating systems out there have robust tools built into them that make it easy for users to rid their device of any data that shouldn’t all into the hands of others. From Windows versions all the way back to XP, to Macs and Linux machines, you can find an easy method of wiping your laptop below.

Back up important data

Before using any storage management tools, the first thing you must do is to ensure all of your files and folders are backed up and organised, so you don't wipe anything that you may need at a later date. Even if you don’t think you’ll ever access the data in future, you may need to reference something hidden away in archives in the distant future.

There are a few ways of doing this and the most practical for you will depend on how much data you need to copy. If you are backing up files selectively, or there aren't many of them and you have a fairly good internet connection, then backing up to the cloud is an option.

Related Resource

2023 Strategic roadmap for data security platform convergence

Capitalise on your data and share it securely using consolidated platforms

Whitepaper with title and textFree Download

The most complete and quickest way, however, is to back up to an external hard drive that's directly connected to the laptop.

You will need to figure out how much storage you need. If everything is stored on one drive (usually the C: drive in Windows), right-click on the drive icon to see how much data is taking up space there.

Once you have connected the external drive to the laptop you want to wipe, you can check that it is big enough to store all the data you need.

To backup, you can simply connect an external drive to the laptop and drag files and folders to it. You can use the Windows Backup feature in Windows 7, or File History in Windows 8. Windows 10 has both features and adds the ability to back up and restore system images.

How to wipe a Windows 7/Vista/XP laptop

Let's start with the oldest OS versions you're likely to encounter. Wiping a laptop running Windows 7 shouldn't be too difficult. Although the legacy OS is now obsolete, you might still run into older devices with the OS still installed.

You can use an application such as DBAN. It's downloadable as an ISO image but you will need to extract it onto a bootable USB or disc in order to use it as a boot device.

Once this USB flash drive is inserted in the laptop you want to wipe, restart the machine and then boot from this drive from the BIOS screen. From here you simply follow the prompts and wait for the machine to work through the reset process, which will securely delete everything. If the machine is going to see new use, you can then reinstall Windows 7 from any disc or bootable USB stick with Windows installation files, although you'll likely want to upgrade this to Windows 10.

DBAN can also be used to wipe any drive running Windows or indeed Linux, as it doesn't need to run in any particular OS.

How to wipe a Windows 8/8.1 laptop

It's much easier to wipe a hard drive in Windows 8 or 8.1. Head to the Start screen, find the Charms bar, click on Settings and then hit Change PC settings. Finally, choose Remove Everything and Reinstall Windows.

When you choose to erase data, make sure you click on the "thoroughly" option rather than "quickly", just to be sure that everything is deleted.

How to wipe a Windows 10 or Windows 11 laptop

Reset page on Windows

On Windows 10 or Windows 11, Microsoft has once again made it easy for users to wipe a hard drive. Although the method hasn’t changed much since the release of the latest generation of Microsoft’s flagship generation, there are a few differences that you might want to keep in mind.

If your laptop is powered by Windows 10, the first thing you’ll want to do is click on the Start button and head to the following: Settings>Update & Security>Recovery.

Once in Recovery, click on Get Started and select whichever options you want to apply. If you’re looking to restore your device back to its original, pristine state, select the Remove Everything option that will, as described, clear your hard drive from all your programmes and files. In the case of two or more hard drives, you’ll have to clarify whether you’re looking to clear all of them, some of them, or only one.

Wiping your Windows 10-powered laptop can be considered one of the easiest processes out there, as it allows you to simply follow a clearly-defined set of instructions that you can read next to whichever Recovery option you wish to select. However, bear in mind that wiping the drives entirely is likely to take a few hours, so plan accordingly. Although an inconveniently lengthy process, this will ensure that all your files are completely erased and your privacy is fully protected.

If you're one of the 1.44% of users who have upgraded to Windows 11 since it was released to the general public in October 2021, you might have noticed that the process of wiping your drive has somewhat changed with the latest iteration of the popular operating system. However, the difference is minimal.

As in the case of Windows 10, click on the Start button and head to Settings. Then, instead of going to Update & Security and then Recovery, the process is as follows: Settings>Windows Update>Advanced Options>Recovery. From then on, the process is largely the same.

How to wipe a Mac

Related Resource

The Total Economic Impact™ of IBM Spectrum Virtualize

Cost savings and business benefits enabled by storage built with IBMSpectrum Virtualize

Blue shapes on white background - The Total Economic Impact™ of IBM Spectrum Virtualize - whitepaper from IBMFree download

Wiping a Mac has broadly similar principles but is, in fact, a lot easier to do, no matter what version of macOS you're running – from Mountain Lion to Mojave. A system disk isn't required, but for earlier Macs you will need one. To initiate the recovery partition, hold down the command and R keys as the computer restarts and open Disk Utility.

Search for the Erase tab security options and click 7-pass Erase. This will write the data to the disk several times. It might take a few hours to complete the process, but this is a very secure way of erasing data.

How to wipe a Linux laptop

If you've got a Linux-based machine, wiping any of the hard drives – internal or external – is a slightly fiddly process that involves using the command line, regardless of the Linux distro you are using.

Open up a command line terminal and enter 'sudo fdisk -l'. This will list all the storage drives currently connected to your machine. Find the drive you want to wipe, and note the drive's device path.

Next, run this command - 'sudo dd if=/dev/zero of=/dev/sdb bs=1M' - via the terminal, making sure to substitute '/dev/sdb/' with the target drive's correct device path. This method is known as 'zeroing', and wipes the drive by overwriting every byte of information with zeroes.

There is some debate as to whether or not this is more secure than overwriting the drive with random bits of information, but it's usually quicker and is perfectly sufficient for protecting your data from the average buyer.

Featured Resources

The 3D skills report

Add 3D skills to your creative toolkits and play a sizeable role in the digital future

Free Download

The increasing need for environmental intelligence solutions

How sustainability has become a major business priority and is continuing to grow in importance

Free Download

2022 State of the multi-cloud report

What are the biggest multi-cloud motivations for decision-makers, and what are the leading challenges

Free Download

Solve global challenges with machine learning

Tackling our word's hardest problems with ML

Free Download


Windows 10 users encounter ‘blue screen of death’ after latest Patch Tuesday update
Microsoft Windows

Windows 10 users encounter ‘blue screen of death’ after latest Patch Tuesday update

20 Dec 2022
How to speed up Windows 10
Microsoft Windows

How to speed up Windows 10

19 Dec 2022
How to virtualise Windows 7 inside Windows 10
Microsoft Windows

How to virtualise Windows 7 inside Windows 10

16 Dec 2022
How to reinstall Windows 10 without losing data
Microsoft Windows

How to reinstall Windows 10 without losing data

24 Nov 2022

Most Popular

Dutch hacker steals data from virtually entire population of Austria
data breaches

Dutch hacker steals data from virtually entire population of Austria

26 Jan 2023
European partners expect growth this year, here are three ways they will achieve it

European partners expect growth this year, here are three ways they will achieve it

17 Jan 2023
GTA V vulnerability exposes PC users to partial remote code execution attacks

GTA V vulnerability exposes PC users to partial remote code execution attacks

23 Jan 2023