Skip to content

How to Secure Your Data with Cipher on Windows 11

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

Cipher is a built-in Windows tool you can use from the command line (a text-based interface for giving instructions to your computer) that securely overwrites deleted data on your drive, making it unrecoverable.

When you delete files in Windows 11, the actual data doesn’t vanish right away. Instead, the space it occupied is marked as available for new information. Without using a tool like Cipher, this residual data can potentially be recovered by others.

Cipher protects your privacy by either encrypting the free space on your drive or by overwriting deleted files with random data, which effectively destroys the original information.

Using Cipher helps ensure that sensitive files you’ve removed remain permanently gone. This protects your personal or business data from unauthorized access.

⚡ 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, we’ll focus on using Cipher to erase deleted data permanently.

Why Should You Overwrite Deleted Data?

When you delete files on Windows, the information isn’t actually gone. It stays on your hard drive until new data overwrites it, meaning someone could potentially recover your supposedly deleted files. Overwriting this deleted space with Cipher makes sure your old files are truly gone for good.

So, using Cipher to overwrite this space makes sure your deleted files are gone forever.

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

How to Overwrite Deleted Data with Cipher

You can easily overwrite deleted data using the Cipher tool in Windows 11 to ensure your old files are permanently gone. The first step is to open Windows Terminal with administrator rights, which lets you run commands that protect your privacy.

  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, your deleted data will be securely erased from that drive.

Summary

Cipher on Windows 11 is a simple tool that helps you securely overwrite deleted data, making sure files you’ve removed can’t be recovered by others. This process overwrites the space where deleted files used to be, keeping your private information safe. Using the command cipher /w: followed by your drive letter is an easy and effective way to protect your data.
  • 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 is a command-line tool that lets you encrypt files and folders, check their encryption status, and importantly, overwrite deleted data so it can’t be recovered.

Is cipher safe to use?

While using a cipher significantly increases the security of your data, it doesn't guarantee complete safety.

Which Microsoft tool uses the cipher?

EFS, or Encrypting File System, is the Microsoft tool that utilizes the cipher command to enable the encryption of NTFS files and folders.

Does cipher w delete files?

The /w switch instructs cipher to wipe all currently unallocated space on an entire local volume. This is an important distinction: it does not delete active files, modify existing folders, or change allocated data blocks. Instead, it targets the free space where previously deleted files may still physically exist.

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.

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

Leave a Comment

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

Exit mobile version