Permanently Deleting Specific Files From SSD in Windows

Published by Nyau Wai Hoe - Updated on

Solid-state drives (SSDs) have become a popular storage medium, offering faster data access speeds and greater durability compared to traditional hard disk drives (HDDs). HHowever, when it comes to securely deleting specific files from an SSD in a manner that ensures they are permanently and irrecoverably removed, the process is not as straightforward as one might assume.

The unique architecture and functioning of SSDs, especially the wear leveling feature, present challenges to ensuring the complete and irreversible removal of data. This article will look into the intricacies of SSD data deletion, discussing the problems posed by SSD architecture and presenting practical solutions for those looking to erase specific files securely.

Delete specific files permanently SSD Windows 11 10

The complexity of SSD and wear leveling

Before jumping into the methods of secure deletion, it’s essential to understand why SSDs pose challenges. Unlike HDDs, which write data directly over previous data, SSDs incorporate a feature known as “wear leveling.” This is designed to extend the life of the drive. Due to the finite number of write/erase cycles that flash memory cells in an SSD can handle, wear leveling ensures that each cell gets an approximately equal number of write and erase cycles.

This means that when data is overwritten, it might not be written back to the same physical location. Instead, the old data could remain in its original location, while the new data is written to a different, less-used part of the drive. This process complicates the task of ensuring that a specific piece of data is entirely and irrevocably deleted.

Also see: Partition New, Existing or External SSD in Windows 11/10

Methods for secure and permanent file deletion on SSD

1. Secure file deletion tools

The advent of software designed to securely delete files offers a semblance of relief for those concerned with data privacy. Tools like Eraser ( and File Shredder ( are specifically crafted to overwrite data several times, making it increasingly difficult for any potential data recovery effort to succeed.

Securely delete specific files from SSD in Windows 11 10

These programs generally utilize complex algorithms to overwrite the data repeatedly, often following standards set by various organizations to ensure the data is as irretrievable as possible.

File Shredder to permanently delete files from SSD

However, while these tools are often effective on traditional HDDs, SSDs pose a significant challenge due to the “wear leveling” mechanism. Even as the secure deletion tool overwrites the data, the SSD’s controller spreads out these write and erase cycles across the disk to avoid repeated wear on any one part of the drive. So, there’s always a lingering uncertainty – has the data genuinely been overwritten, or does it still exist in some form on the SSD?

In essence, secure file deletion tools provide a layer of security, but they are not foolproof, especially when dealing with SSDs. Users relying on these tools should be aware of their limitations and consider pairing them with other methods to bolster data security.

Relevant guide: How to Password Protect a Folder in Windows 11 or 10

2. The TRIM command

In the SSD world, the TRIM command plays a pivotal role in managing and optimizing the drive’s performance. As SSDs don’t handle deletions the same way HDDs do, they need assistance in identifying which blocks of data are no longer in use and can be wiped. Enter TRIM.

TRIM SSD to permanently delete files

When you delete a file, it isn’t immediately eradicated from the SSD. Instead, the operating system marks the data blocks as no longer in use. Over time, this can lead to performance degradation since the SSD doesn’t know which blocks contain valid data and which ones don’t. The TRIM command addresses this issue by informing the SSD controller about these unused blocks. Subsequently, the controller might decide to clear these blocks during idle times or manage them more efficiently during subsequent writes.

For users concerned about data security, it’s crucial to note the following about the TRIM command:

  • TRIM is automatic: On modern operating systems like Windows 11, Windows 10, macOS, and many Linux distributions, the TRIM command is enabled by default for supported SSDs. Users don’t typically have to manually trigger it.
  • Delayed erasure: While TRIM flags the data blocks for erasure, it doesn’t guarantee immediate deletion. This means that, for a certain period, deleted data could still be recoverable.
  • Partial coverage: Not all SSDs, especially older models, support the TRIM command. It’s beneficial to check whether your SSD and operating system support and enable TRIM.

To ensure TRIM is active on your system, users might follow specific steps. For example, on Windows:

  1. Open the “Command Prompt” as an administrator.
  2. Type “fsutil behavior query DisableDeleteNotify” and press Enter.
  3. If the result is “0”, TRIM is enabled. If it’s “1”, TRIM is disabled.

Check if TRIM is enabled in Windows 11

Despite its advantages in maintaining SSD performance, TRIM’s role in secure file deletion is more indirect. While it can lead to data blocks being wiped, there’s no guaranteed timeline or certainty that flagged data has been permanently removed.

3. Full drive encryption

Protecting data at its source is one of the most effective ways to ensure its security, and this is where full drive encryption shines. By encrypting the entire drive, every piece of data, whether active or deleted, is wrapped in a layer of cryptographic protection.

Encrypt SSD data using BitLocker

Here’s how full drive encryption impacts secure file deletion:

  • Data remains, but is unreadable: When you delete a file on an encrypted drive, the raw data might still linger on the SSD due to wear leveling. However, since it’s encrypted, even if someone were to recover this data, they’d find only a gibberish pile of encrypted bytes. Without the decryption key, the data is meaningless.
  • Key management: The strength of encryption is only as good as the protection of its decryption key. If the key is compromised, so is the data. Solutions like BitLocker for Windows, FileVault for macOS, and LUKS for Linux often integrate with hardware-level security or user passwords to protect these keys.

Setting up full drive encryption: Different operating systems offer varying methods for enabling encryption:

  • Windows: Navigate to “Control Panel”, then select “BitLocker Drive Encryption”. Click “Turn on BitLocker” and follow the guided steps. Ensure you save the recovery key in a secure location.How to open BitLocker SSD Drive Encryption in Windows
  • macOS: Open “System Preferences” and click on “Security & Privacy”. Under the “FileVault” tab, click the lock icon to make changes, then click “Turn On FileVault”. As with BitLocker, keep your recovery key safe.
  • Linux: Various distributions have different methods, but many use LUKS for encryption. Typically, during the OS installation, there’s an option to encrypt the entire drive. If encrypting post-installation, tools like cryptsetup can be used, though the process is more technical.

It’s essential to be aware of the potential pitfalls of encryption. Forgetting a password or losing a decryption key can result in losing access to the entire drive’s contents. Additionally, while encryption makes data recovery more challenging, it’s not entirely foolproof. Advanced threats or sophisticated attackers might still find ways to bypass or break encryption under specific circumstances.

Related resource: How to Lock Drive in Windows 11 Without BitLocker

4. SSD secure erase

For those instances when data security needs to take precedence over data preservation, the “Secure Erase” function built into many SSDs offers a potential solution. Different from a standard format or deletion, the “Secure Erase” command is an instruction to the SSD’s controller to reset all of its NAND flash memory cells, effectively wiping the slate clean.

Here’s a comprehensive overview of the “Secure Erase” function:

  • Thorough wiping: Unlike traditional deletion methods that might leave data remnants due to wear leveling, “Secure Erase” is designed to purge everything, including data left in over-provisioned areas of the SSD that users can’t typically access.
  • Speed: A significant advantage of using the “Secure Erase” function is its speed. Since it’s a native command executed by the SSD’s controller, it’s often much faster than overwriting the entire drive with other software methods.
  • Preparation: Before using “Secure Erase,” ensure all vital data has been backed up elsewhere. The process is irreversible, and all data on the SSD will be lost.

Executing a Secure Erase:

  1. First, you’ll need a tool that can send the “Secure Erase” command to the SSD. Many SSD manufacturers provide software for this, like Samsung’s “Magician Software” or Crucial’s “Storage Executive Tool”. Alternatively, third-party utilities like “Parted Magic” can also perform this task.
  2. Launch the chosen software and look for the “Secure Erase” or a similarly named option.Secure Erase option or command
  3. Select the SSD you wish to erase. Often, the software will ask you to create a bootable USB or CD since the “Secure Erase” cannot be performed on a drive that’s currently in use.
  4. Boot from the USB or CD you created, and once you initiate the process, the SSD will be wiped clean.

Caution is advised when using “Secure Erase.” While it’s an effective way to remove all data from an SSD, the complete loss of data means it’s not suitable for scenarios where only specific files need to be deleted or if other data on the drive is still required.

5. Keeping the SSD full

At first glance, the idea of keeping an SSD full to aid in secure file deletion might seem counterintuitive. However, when understood in the context of SSD architecture and wear leveling, the rationale becomes clearer.

Here’s a breakdown of the concept:

  • Limited free space: When an SSD is near its capacity, new data has fewer places to be written. This limitation increases the chances of overwriting the sectors containing previously “deleted” data. Over time, by continuously filling the SSD and writing new data, the remnants of old, unwanted files are more likely to be overwritten.
  • Performance and lifespan considerations: While the idea of keeping an SSD full can enhance data security, it’s essential to strike a balance. Consistently operating an SSD near its maximum capacity can lead to reduced performance and potentially shorten its lifespan. SSDs benefit from some free space, which allows the controller to more effectively manage wear leveling and garbage collection.

Keeping the SSD full

Steps to keep the SSD full:

  1. Regularly transfer large, non-sensitive files to your SSD, ensuring it remains near its capacity. These can be media files, dummy data files, or any other significant data set.
  2. Periodically verify the SSD’s remaining free space. Tools and utilities, often built into operating systems, can help monitor storage usage. For example, on Windows, right-click the SSD drive in “File Explorer” and select “Properties” to view the used and free space.
  3. Consider using software that can generate and write dummy data to fill up the SSD. This data can later be deleted when necessary, making space for genuine files while keeping the drive relatively full.

Useful tip: How to Create Large Test Files in Windows 11 or 10

Though this method can help in some scenarios, it’s essential to view it as a supplementary technique rather than a primary solution. Relying solely on this strategy might not provide the comprehensive data security many users seek, especially when handling highly sensitive information.

6. Limit write access and use hardware encryption

While the methods discussed so far primarily address the post-deletion phase of data handling, an effective preemptive approach is to control how and where sensitive data is written in the first place. By limiting write access and employing hardware-level encryption, you can add another layer of security that makes data retrieval exponentially more challenging.

Limiting write access:

  • User controls: Many operating systems allow administrators to set stringent user permissions. By limiting who can write data to the SSD, you reduce the chances of sensitive data being unintentionally saved or accessed by unauthorized users.
  • Software restrictions: Certain software tools can restrict write access to specific areas of the drive or monitor and control data being written in real-time. This granularity ensures that only data that meets specific criteria is saved to the SSD.

Hardware encryption:

  • Built-in security: Some modern SSDs come equipped with hardware encryption features. Unlike software encryption, which relies on the computer’s CPU to encrypt data, hardware encryption is handled by the SSD itself, often resulting in better performance and more robust security.
  • AES encryption: Many SSDs with hardware encryption utilize Advanced Encryption Standard (AES) with 256-bit keys, a widely recognized and robust encryption standard.
  • Activation: To benefit from hardware encryption, you may need to enable it via the SSD’s firmware or accompanying software. Once activated, the drive will typically require a password or encryption key at startup, making unauthorized data access much more difficult.

how to permanently delete files on ssd

Steps to implement:

  1. Check if your SSD supports hardware encryption. This information can often be found in the drive’s specifications or the manufacturer’s website.
  2. Access the SSD’s management software or firmware settings. Look for options related to “Hardware Encryption” or “Drive Security.”
  3. Follow the prompts to enable encryption. You’ll likely be asked to create a secure password or encryption key. Store this safely – losing it could mean losing access to all the data on the drive.
  4. For limiting write access, go into the operating system’s user management or security settings. For instance, in Windows, you can navigate to the “Group Policy Editor” to fine-tune user permissions.

Remember, while these methods provide robust security against most threats, no system is entirely impenetrable. It’s always wise to employ multiple layers of security, especially when the stakes are high.

Final thoughts

The digital era has transformed how we view, store, and manage information. Solid-state drives, with their impressive speeds and resilience, have become the linchpin of modern data storage. Yet, as we’ve explored, the very mechanisms that make SSDs efficient also complicate the process of secure file deletion.

As SSDs continue to dominate the storage market, understanding their intricacies becomes vital for users prioritizing data security. While no method guarantees 100% data erasure due to the inherent complexities of SSD architecture, employing a combination of the strategies discussed can significantly enhance data deletion security. Always remember that when handling highly sensitive data, multiple layers of protection, from strong encryption to vigilant data management practices, are the keys to ensuring its safekeeping.

Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.

Share via
Copy link