- Restoring a PC to factory settings does not guarantee that your data will be completely erased from the disk.
- It is key to combine manual cleaning, system reset, and secure erase techniques.
- The erasure method varies between HDD and SSD: overwriting versus secure erase commands.
- Don't forget to log out, unlink accounts, and clean external drives and USB drives.
If you are going to sell, give away or recycle your computer, It's not enough to just wipe it with a cloth and clean it inside and delete four foldersYour PC may be full of photos, documents, passwords, bank keys, or work projects that, even if you "delete" them, can still be recovered with a free program downloaded from the Internet.
The most delicate thing is that Many people believe that restoring the device to factory settings is all that's needed.That's why it's useful to learn to Automate cleaning in Windows 11They format, reinstall Windows or macOS, and think the problem is solved. Then someone runs a tool like Recuva or PhotoRec, and years of personal and professional data suddenly reappear. Let's see, step by step, how to thoroughly clean your PC, what you should delete before selling it, and how to perform a truly secure data erasure on Windows, Mac, and other devices.
What to check and delete before selling your computer
Before getting into restorations and formatting, it's a good idea to do a manual pass to detect and eliminate the most obvious and sensitive informationYou won't track absolutely everything, but you will track the critical points where personal data almost always accumulates.
On desk We tend to put everything off: important documents, screenshots, budgets, photos… The first step is to completely empty it. Move what you want to keep to an external drive or the cloud, send the rest to the recycle bin, and when you're done, empty it so those files aren't just a click away from reappearing.
Folder Downloads It's another black hole. That's where PDF invoices, software installers, compressed files with confidential documents, photos, scanned copies of ID cards end up… Open the folder, review it carefully, and delete everything you don't need to keep. Again, Remember to empty the trash can when you finish.
En Documents Files generated by all kinds of applications accumulate there: word processors, spreadsheets, scanner and printer programs, management software, etc. It's common to find contracts, CVs, medical reports, lists of poorly saved passwords in .txt files, and so on. Go through the subfolders and delete or back up what's necessary.
Folders Images and Photographs They often contain years of personal life footage: vacations, family gatherings, intimate photos, or photos of others. Use the system's search function to locate formats like .jpg, .jpeg, .png or .gif across the entire disk, not just in Images, and decides what is saved and what is destroyed.
Something similar happens with the youtubeLook for file extensions like .mp4, .avi, .mkv, .wmv, or .flv. Downloaded movies can be deleted, but many computers store personal videos, meeting recordings, online classes, or work materials. All of this must be removed from the computer before it changes hands.
In the section The music You might have private recordings, downloaded podcasts, interviews, or audio files that you don't want anyone else to see. Look for formats like .mp3, .wma, or .mpeg and don't hesitate to delete anything you won't keep elsewhere.
The programs and applications They also store sensitive information: user accounts, histories, local databases, licenses, and passwords. Before selling the computer, it's important Log out and unlink your accounts in each application (Office, Creative Cloud, Steam, Epic, Spotify, etc.) and then uninstall the programs that you no longer want on your computer.
The Web browsers Chrome, Firefox, Edge, Safari, and other browsers are a goldmine for anyone who wants to snoop around: browsing history, session cookies, saved credentials, autofill data, credit card information, etc. In all of them, you should: log out of your accounts, clear browsing history, passwords, and data, and preferably... reset the browser to its factory settings.
Don't forget to check the operating system user accountsIf you've created multiple users on Windows, macOS, or Linux, make sure you don't leave any personal accounts active. Ideally, when you're finished, there should only be one generic account, or even none at all if the installation wizard creates a new user for the buyer.
Reset the computer to its original factory settings
Once the manual sweeping is done, the next step is leave the system like it's brand new.Windows and macOS themselves include tools to restore your computer to its original state, which, in theory, deletes your programs, settings, and personal files.
This factory reset is very convenient because automates the reinstallation of the operating systemThis is ideal if you're going to sell the device and want the new owner to turn it on and be greeted by the first-start assistant, just like you were on day one.
How to delete everything except the operating system in Windows
Modern versions of Windows have the following function "Reset this PC", designed precisely to leave the machine clean without having to deal with installation USB drives or strange commands.
To access it, on Windows 10 and Windows 11, go to Settings > System > Recovery and click on “Reset this PC”. A wizard will open with two main options: “Keep my files” and “Remove everything”.
The option “Keep my files” Remove installed applications, additional drivers and most settings, but it keeps your documents, photos, and other personal data in place. It might be useful if you're troubleshooting performance issues or system errors, but It's not enough if you're going to sell the computerbecause your files will still be there.
The alternative that is of interest in a sales scenario is “Remove everything”This option erases programs, settings, and personal files and reinstalls Windows, leaving the computer virtually like new. Recent versions also offer a choice between “Cloud download” (download a clean copy of Windows from Microsoft's servers) or “Local Reinstallation” (use the installation files that are already on your computer).
Within “Remove everything”, Windows usually shows two deletion methods: one quick methodwhich simply marks the data as free space without overwriting everything, and a slow methodwhich includes wiping the drive to make file recovery more difficult. The fast option is less secure: with recovery tools, much data can be recovered. The slow option takes longer, but Old files will be much more difficult to recover.
On computers with Windows 8/8.1 the process is similar, but you access it from the PC settingsGo to Settings > Change PC settings > Update and recovery > Recovery, and then select "Remove everything and reinstall Windows." The system will then restore your PC to its factory settings, erasing everything on your data partitions.
Manufacturers such as Dell, HP, Lenovo, and others also integrate restoration tools (sometimes accessible with a key at startup) that restore the computer to the original image it came with when you bought the PC. The result is similar: factory applications, original drivers, and no personal data.
How to restore your Mac before selling it
On Macs the process is slightly different, but the idea is the same: erase the contents of the disk and reinstall macOS so that the next user can configure the equipment from scratch as if it were new.
On modern Macs (especially those with Apple Silicon processors and recent macOS versions), there is a very convenient option called “Erase content and settings”Similar to resetting an iPhone, you can perform a full system wipe from the system settings menu while keeping the system intact. However, the traditional method using Disk Utility remains widely used and offers more control.
The classic process involves shutting down the Mac and then, Turn it on by holding down the ⌘ + R keys until the Apple logo appears. This will take you to the recovery environment, where the "macOS Utilities" window will be displayed.
Within this environment, the first thing to do is open "Disk Utility"In the sidebar, select your Mac's primary internal drive (usually shown under the "Internal" section). Then, click the "Erase" button.
The system will ask you for a name for the new volume (You can leave the default one) and a format. In older macOS versions, the typical option was "Mac OS Extended (Journaled)," while newer versions use "APFS." There are encrypted variants that add an extra layer of security: for example, "Mac OS Extended (Journaled, Encrypted)," recommended if you want a more robust data erasure process.
When you confirm by clicking the "Erase" button, your Mac will begin formatting the disk. The time this takes will depend on the type of drive (HDD or SSD) and the amount of data. When it's finished, close Disk Utility and return to the Utilities window, where you can choose “Reinstall macOS” to download and install a clean copy of the system.
Once macOS is installed, the computer will restart and display the initial setup wizard. It is recommended to leave it on that screen and let the new owner create their user, language, Wi-Fi, etc.
Why formatting isn't enough to protect your data
Many people get stuck at the "format" or "factory reset" step, thinking that solves everything. The problem is that, technically speaking, Deleting or formatting does not mean destroying the data.but mark the space as available for reuse.
On a traditional hard disk drive (HDD) it's like tear out the index of a book but leave all the pages insideThe operating system loses track of what's in those sectors, but recovery tools scan the disk for patterns and reconstruct entire files: photos, PDFs, text documents, databases, etc.
You can recover them with free software like Recuva or PhotoRec. thousands of “deleted” files Months after a simple format. From private photos to chat histories, tax documents, source code, or databases with customer information. Real-world tests have shown that nearly half of secondhand devices still contain visible personal data, and many more contain data recoverable with basic tools.
The SSD Solid-state drives (SSDs) further complicate matters. Internally, they function very differently from HDDs: they use flash memory and a system of “wear-leveling” which distributes data writing across all cells of the drive to extend its lifespan. They also have hidden space that the operating system doesn't directly see. Copies of your data can remain in that extra space even after a format, a quick wipe, or a poorly executed factory reset.
All this means that if you simply restore and hand over the computer, it's very possible that someone else could recover a good part of your digital life It's not too difficult. And you don't need extensive security knowledge: just follow a basic YouTube tutorial and download a couple of programs.
Secure erasure tools and methods: beyond formatting
To minimize the chances of recovery as much as possible, one must resort to secure deletionsThese are designed to overwrite data or send special commands to storage drives. The specific strategy depends on the type of hard drive your computer has and your level of technical expertise.
In mechanical hard drives (HDDs), a classic and very effective solution is to use DBAN (Darik's Boot and Nuke)It's a bootable system: you download the image, create a USB drive with Rufus or a similar tool, boot your computer from that USB drive, and follow the instructions. The "autonuke" mode performs a complete wipe that overwrites each sector of the disk multiple times with different data patterns.
The main drawback of DBAN is that It's not designed for SSDs.Repeated overwrite operations on a solid-state drive can reduce its lifespan and still leave data in areas that software cannot access due to the SSD's internal design. Furthermore, the interface is unfriendly: text-based menus and options that may overwhelm unfamiliar users.
Windows includes a command-line tool called cipher which allows you to fill the space that the system considers free with data. Run, for example: cipher /w:C: It instructs Windows to overwrite with zeros the areas marked as empty on the C drive. It's not as comprehensive as a DBAN on an HDD, but It's an added layer of security. if you cannot use more advanced solutions.
Another classic tool in Windows is SDeleteMicrosoft Sysinternals' tool allows you to securely delete specific files or free space. With parameters such as -p 3 You can specify the number of overwrite passes. It works via the command line, so it requires a bit more technical know-how.
In the field of applications with a graphical interface, there are utilities such as Eraser or BleachBit These tools allow you to select individual files, entire folders, or even "free space" for the program to handle the secure overwriting. They are very convenient when you simply want to ensure that certain sensitive documents disappear without leaving a recoverable trace.
Secure erase on SSD: ATA Secure Erase commands and manufacturer tools
With SSDs, the approach changes. The correct way to clean them is to use the functions of secure erase integrated into the unit's firmware itselfFor SATA drives, use the ATA Secure Erase command, and for NVMe drives, use the NVMe Format command or equivalent.
These commands operate at the hardware level. When executed correctly, the SSD controller resets all memory cells to their empty stateThis includes hidden areas and those reserved for wear-leveling. It is the method recommended by security and forensic analysis guides as the proper way to sanitize an SSD.
The problem is that it's not always easy for the average user to execute these commands. Not all laptops allow them to be launched from the firmware, some BIOS/UEFI systems hide or block them, and many generic utilities fail silently, showing a "success" that in reality He hasn't cleaned the entire unit.
Fortunately, almost all serious SSD manufacturers offer official tools To manage your drives, you can use applications that include a "Secure Erase" option or similar: Samsung Magician for Samsung SSDs, Kingston SSD Manager for Kingston, Crucial Storage Executive for Crucial, and so on. These applications typically guide you step-by-step and handle issuing the appropriate command without you having to struggle with terminals.
Securely erasing an SSD with the right tool It usually only takes a few minutes.This is faster than the many hours that a multiple overwrite erase on an HDD can require. It's quicker, more respectful of the drive's lifespan, and, above all, much more reliable when it comes to leaving it clean.
Securely delete individual files without formatting your PC
Sometimes you don't want to restore the entire system, but simply delete certain files without leaving a traceFor example, if you continue using the same computer but want to ensure that certain documents or photos disappear completely.
In Windows, a program widely used for this purpose is EraserAfter installation, it allows you to right-click on a file or folder and choose an option like "Erase" or "Securely Delete." The program overwrites that content following the algorithm you have configured in the options (one or more passes) and, when finished, removes the reference from the file system.
Another option is to use SDelete directly in the console, specifying the number of passes and whether you want to act on specific files or on free space. And on GNU/Linux or macOS systems, there are equivalent commands and third-party utilities that do something very similar, either from the terminal or with a graphical interface.
The general idea is always the same: overwrite before deletingIf you simply empty the Recycle Bin or click "Delete," the data remains on the disk, ready to be unearthed. In contrast, a proper secure erase overwrites that information before marking the space as free, making any recovery effort much more difficult and often futile.
Reset other linked devices and cloud accounts
When preparing your PC for sale, you shouldn't just think about the computer itself. Many devices are linked to online accounts. that maintain licenses, synchronize data, and remember authorized devices.
In the Microsoft ecosystem, for example, it is advisable Remove the PC from your Microsoft account Once you've restored it, you can do so by going to the Microsoft Devices website, selecting your device, and using the "Remove" or "Unlink" options. This prevents it from counting toward your Microsoft Store device limit or remaining unnecessarily associated with your user account.
It is equally important Log out and revoke access In services like Google, Apple ID, Adobe, Spotify, gaming services, etc., many store tokens or access keys that could still be valid if someone restores a backup or recovers a folder that was accidentally deleted.
Also don't forget the external hard drives and USB flash drivesThey are often overlooked, yet they frequently contain complete backups, old photos, tax documents, or databases spanning years. The same secure erasure recommendations apply to them: overwriting for HDDs and, if possible, using secure erase commands or specific tools for flash drives.
In the case of smartphones and tabletsBoth Android and iOS include clear factory reset options. On Android, go to the Settings app, then System > Advanced > Reset options > Erase all data, after ensuring the battery is sufficiently charged and any memory cards are removed. On iPhone and iPad, go to Settings > General > Transfer or Reset > Erase All Content and Settings, entering your Apple ID passcode and password if prompted.
These mobile resets They delete apps, accounts, and personal data.And on modern devices with default encryption, removing the encryption keys prevents access to anything stored in internal memory. Even so, it's always a good idea to combine this with first deleting sensitive accounts and local backups.
In the end, preparing a PC for sale is not just a matter of pressing "restore" and that's it. This involves reviewing files, logging out, unlinking the computer from your accounts, choosing the appropriate erasure method based on the disk type, and ensuring you haven't left any loose ends. such as external hard drives or forgotten USB drives, as well as considering Refurbished PCs vs. new computersIt takes a while and can be a bit tedious, but those extra minutes are the difference between handing over just a piece of hardware or, unwittingly, giving away your digital life to a complete stranger.
