Skip to content
Follow
Windows

How to Secure Your Data with Cipher on Windows 11

Richard
Written by
Richard
Jan 31, 2026 Updated Aug 13, 2026 4 min read
How to Secure Your Data with Cipher on Windows 11
How to Secure Your Data with Cipher on Windows 11

Cipher is a built-in Windows 11 tool that wipes deleted files permanently so nobody can ever recover them. When you delete a file normally, Windows just hides it and keeps the actual data on your hard drive until new data overwrites it.

Specialized recovery software can easily bring back those deleted files unless you clear the space. Cipher solves this privacy risk by writing random data over your empty drive space, making sure your old files stay gone forever.

⚡ Quick Answer

Cipher securely overwrites deleted data on your drive, making it unrecoverable. Open Windows Terminal as an administrator, then type `cipher /w:` and press Enter. Replace “ with the drive you want to clean.

What is Cipher?

Cipher is a Windows tool that can:

Today, this guide covers using Cipher to erase deleted data permanently.

Why Should You Overwrite Deleted Data?

The Cipher utility protects deleted files on Windows 11 computers by overwriting the storage sectors those files previously occupied. Without this intervention, deleted files linger on the hard drive until new data overwrites them, leaving an opening for data recovery. Running Cipher ensures that leftover fragments become entirely unrecoverable.

This file-shredding process overwrites the physical sectors previously occupied by deleted files with random garbage data. The procedure thwarts data recovery tools from reconstructing original files, locking down private information.

💡Tip
If you want to learn more about deleting files the standard way, check out this guide: How to Delete Files and Folders in Windows 11.

How to Overwrite Deleted Data with Cipher

Overwriting deleted data on Windows 11 with the Cipher tool ensures old files vanish permanently. To start, open Windows Terminal with administrator rights. This elevation grants permission to run the necessary command for wiping old file traces.

  1. Open Windows Terminal as an Administrator %%FLAG_ADMIN%%

    To do this:



    • Click the Start button or press the Windows key

    • Type Windows Terminal

    • Right-click Windows Terminal and choose Run as administrator


    If you want a detailed guide, see: How to Open Windows Terminal as Admin.


  2. Choose PowerShell or Command Prompt inside Windows Terminal

    You can switch between them using the dropdown arrow at the top or by opening a new tab. More info here: Open PowerShell on Windows 11 | Open Command Prompt on Windows 11


  3. Type the Cipher command to overwrite deleted data on your drive

    Use this command format:


    cipher /w:<drive letter>


    Replace <drive letter> with the letter of the drive where you want to erase deleted data. For example, to clean drive C, type:


    cipher /w:C


    📝Important
    Make sure you select the correct drive letter!
  4. Press Enter and wait for the process to finish

    The tool will take some time depending on your drive size and speed. It will fill the free space with random data, making deleted files unrecoverable.

After the process completes, deleted data remains securely erased from that drive.

Summary

Cipher on Windows 11 securely overwrites deleted data, ensuring removed files stay gone forever. It targets the physical sectors where deleted files used to reside, keeping private information safe. Deploying the command `cipher /w:` followed by a specific drive letter provides an effective way to sanitize storage.

  • Cipher overwrites deleted data so it cannot be recovered
  • Deleted files stay on disk until overwritten, so this step keeps your data safe
  • Using cipher /w:<drive letter> is easy and effective
  • Always run the command on the right drive to protect your private files
  • Make it a habit to run this tool regularly for better data security
  • Following these simple steps helps keep your personal information private and your computer more secure

Where to Learn More

For official details, visit Microsoft's guide: Use Cipher to overwrite deleted data (Microsoft Official Guide)

What does cipher do in 🪟 Windows 11?

Cipher in Windows 11 functions as a command-line utility that lets administrators encrypt files and folders, check encryption status, and permanently overwrite deleted data.

Is cipher safe to use?

While using Cipher substantially increases data security, absolute safety depends on overall system hygiene and hardware integrity.

Which Microsoft tool uses the cipher?

The Encrypting File System (EFS) relies on this command to lock down individual files and folders on drives formatted with NTFS (New Technology File System).

Does cipher w delete files?

The `/w` switch tells Cipher to wipe all unallocated space on a local volume. This distinction matters because the tool leaves active files, existing folders, and allocated data blocks completely untouched while targeting free space where old file fragments might hide.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Delete Files in Windows 11
Windows How to Delete Files in Windows 11
How to Delete Folders in Windows 11
Windows How to Delete Folders in Windows 11
How to Encrypt Files in Windows 11
Windows How to Encrypt Files in Windows 11
How to Change Drive Letter in Windows 11
Windows How to Change Drive Letter in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *