How to Completely Delete Any Windows File Using SDelete

Files deleted from your PC may still be recoverable, at least for a short time. To make sure they're gone forever, you can use SDelete. This command-line utility securely erases data, making it unrecoverable.

Table of Contents

What is SDelete?

When you delete a file, your computer simply marks the space it occupied as unallocated. This means that until another application overwrites the space, the contents can be recovered using data recovery tools .

SDelete can ensure that deleted files cannot be recovered. This command-line utility not only deletes existing files, but also removes previously deleted data that remains in unallocated areas of the drive. It securely erases data using the DOD 5220.22-M strong data deletion standard, recommended by the U.S. Department of Defense. It works by overwriting file data on disk clusters.

How to install SDelete

To get started, visit the Microsoft Sysinternal site . Click Download SDelete to save the compressed file to your local drive. Right-click the downloaded file, select Extract All , select a destination folder, and then click Extract .

How to Completely Delete Any Windows File Using SDelete
SDelete Download Page

Since SDelete is a command-line utility, it does not work like a regular application with a graphical interface. To set it up, first move the unzipped SDelete folder to the C:\Program Files folder . Once done, follow these steps:

1. Click Start , type view advanced system settings and open the best match.

How to Completely Delete Any Windows File Using SDelete

2. Select Environment Variables .

How to Completely Delete Any Windows File Using SDelete

3. In System variables , select the Path line and choose Edit .

4. Select New to add a new line, then click Browse . Navigate to C:\Program Files and select the SDelete folder .

How to Completely Delete Any Windows File Using SDelete

5. Click OK on all open dialog boxes.

After configuring SDelete, launch the tool and see how it works.

1. Click Start , type cmd , right-click Command Prompt and select Run as Administrator .

How to Completely Delete Any Windows File Using SDelete

2. Type SDelete and press Enter in the Command Prompt window to launch the tool. You will also see the SDelete License Agreement dialog box when the tool is run for the first time. Click Agree to close the dialog box.

How to Completely Delete Any Windows File Using SDelete
SDelete Command in Command Prompt

How to use SDelete to delete files permanently

Before you begin, you should back up your data. Also, consider testing SDelete on a virtual machine first to minimize the risk of accidentally deleting important files. If you don't already have a virtual machine , you can easily set one up on a Windows PC for testing.

To get started, launch Command Prompt with admin privileges . In Command Prompt , type SDelete and press Enter to launch the tool. This will display a list of parameters and arguments that you can use with the SDelete command to securely delete files and free up disk space .

For this tutorial, we will be securely deleting the MP3 file located in the C:\Media folder . Open File Explorer , locate and right-click the MP3 file , then select Copy as Path to copy the full file path of that file.

How to Completely Delete Any Windows File Using SDelete

Next, in the Command Prompt, type SDelete followed by the file path. For example, the full command would look like this:

SDelete C:\Media\OneMP3.mp3
How to Completely Delete Any Windows File Using SDelete
SDelete Command in Command Prompt

Press Enter to execute the command. If successful, you will see the output:

Files deleted: 1

Next, try deleting the Media folder located in C:\ .

When deleting a directory, you need to include its subdirectories and handle any read-only attributes to ensure everything is cleaned up properly. To do this, use the SDelete command with the -s parameter to include subdirectories and -r to remove read-only attributes.

The full command would look like this:

SDelete -s -r C:\Media

After running the command, the output will show the number of folders and files that have been deleted.

How to Completely Delete Any Windows File Using SDelete
SDelete Command in Command Prompt

Other uses for SDelete

In addition to securely deleting files, SDelete offers a number of other features for managing your data. Here are some additional ways you can use SDelete.

Unallocated space management

The -c parameter allows you to clean up unallocated space previously used by deleted data without affecting your existing files. To use it, type SDelete followed by the -c parameter and the drive letter. For example, to clean up free space on drive F:, run:

SDelete -c F:

Specify number of overwrites

By default, SDelete overwrites unallocated space once to make recovery more difficult. To make data recovery even more difficult, you can use the -p parameter followed by a number to specify multiple overwrites. For example, use the following command to overwrite the target 3 times, etc.:

SDelete -s -r -p 3 C:\Media

SDelete goes beyond the standard deletion action offered by Windows and other operating systems. Clearing up your disk space with SDelete ensures that no one can retrieve any of your data when you trade in or give away your computer. Even then, throwing away old technology is risky. Here's what you need to do before selling your laptop or phone .

Leave a Comment

How to Fix Microsoft Teams Whiteboard Error Login

How to Fix Microsoft Teams Whiteboard Error Login

Frustrated by the Microsoft Teams Whiteboard Error Login? Discover proven, step-by-step fixes to resolve it quickly and get back to seamless collaboration. Latest solutions for desktop, web, and mobile. No tech skills needed!

How to Fix Microsoft Teams Đăng nhập (Login) Error 2026

How to Fix Microsoft Teams Đăng nhập (Login) Error 2026

Tired of Microsoft Teams Login Error 2026 blocking your work? Discover simple, step-by-step fixes to resolve Microsoft Teams "Đăng nhập" Error 2026 instantly. Clear cache, reset settings, and get back online fast – no IT help needed!

How to Fix Microsoft Teams Error Logs Not Loading

How to Fix Microsoft Teams Error Logs Not Loading

Struggling with Microsoft Teams error logs not loading? Follow our proven, step-by-step guide to clear cache, update Teams, fix permissions, and resolve the issue fast for smooth troubleshooting. Works on latest versions!

How to Update Microsoft Teams to the Latest Version in 2026

How to Update Microsoft Teams to the Latest Version in 2026

Master how to update Microsoft Teams to the latest version in 2026 effortlessly. Step-by-step for desktop, mobile, and web – boost security, features, and performance now!

Microsoft Teams vs Slack: Which is Better for Work in 2026?

Microsoft Teams vs Slack: Which is Better for Work in 2026?

Discover Microsoft Teams vs Slack in 2026: in-depth comparison of features, pricing, integrations, and AI tools. Find out which is better for your work team productivity and collaboration.

Troubleshooting Microsoft Teams Video call Error

Troubleshooting Microsoft Teams Video call Error

Struggling with Microsoft Teams video call error? Discover proven, step-by-step troubleshooting fixes for video issues, camera problems, and more. Get seamless calls back in minutes!

Solving Microsoft Teams Mac Error Keychain Issues

Solving Microsoft Teams Mac Error Keychain Issues

Struggling with Microsoft Teams Mac Error Keychain Issues? Discover proven, step-by-step fixes to resolve Keychain errors on Mac, restore smooth login, and boost productivity fast. No tech expertise needed!

Solving Microsoft Teams Hard Error (2026 Guide)

Solving Microsoft Teams Hard Error (2026 Guide)

Tired of Microsoft Teams crashing with "Hard Error"? This 2026 guide delivers step-by-step fixes for seamless video calls and chats. Clear cache, update, reinstall—solve it now!

How to Fix Microsoft Teams DLL Missing Errors (msvcp140.dll)

How to Fix Microsoft Teams DLL Missing Errors (msvcp140.dll)

Tired of Microsoft Teams crashing due to msvcp140.dll missing errors? Discover proven, step-by-step fixes to restore smooth video calls and chats. Works on Windows 10/11 with latest updates.

How to Fix Microsoft Teams Meeting ID Not Working

How to Fix Microsoft Teams Meeting ID Not Working

Tired of Microsoft Teams Meeting ID not working? Get instant fixes for join errors on desktop, mobile, or web. Step-by-step troubleshooting with latest updates to rejoin meetings seamlessly. No tech skills needed!

How to Fix Microsoft Teams Welcome Error Startup Loop

How to Fix Microsoft Teams Welcome Error Startup Loop

Struggling with Microsoft Teams "Welcome Error" startup loop? Discover step-by-step fixes to resolve the issue quickly. Clear cache, reset app, and more for seamless Teams experience. Updated with latest solutions.

How to Fix Microsoft Teams Disabled Error Account Blocked

How to Fix Microsoft Teams Disabled Error Account Blocked

Stuck with Microsoft Teams "Disabled Error" Account Blocked? Discover proven, step-by-step solutions to fix the issue fast, regain access, and prevent future blocks. No tech skills needed!

How to Use Microsoft Teams Copilot for AI-Powered Meetings

How to Use Microsoft Teams Copilot for AI-Powered Meetings

Master how to use Microsoft Teams Copilot for AI-powered meetings. Step-by-step guide with latest tips to generate recaps, answer questions, and boost productivity effortlessly. Transform your Teams experience today!

Microsoft Teams Breakout Rooms Tutorial for Beginners (2026)

Microsoft Teams Breakout Rooms Tutorial for Beginners (2026)

Master Microsoft Teams Breakout Rooms with this beginner-friendly tutorial. Step-by-step guide to creating, managing, and optimizing breakout rooms for dynamic 2026 meetings and workshops. Boost engagement now!

Solving Microsoft Teams Recording Save Error

Solving Microsoft Teams Recording Save Error

Stuck with Microsoft Teams Recording Save Error? Get instant, step-by-step fixes for saving recordings effortlessly. Proven solutions for all common issues – no tech skills needed!