Microsoft Windows Server 2008 R2 and 2008 R2 (Service Pack 1)

Microsoft Platform Guide

Audience
Public
Source Type
Documentation

sDelete

Windows Server 2008 R2 and 2008 R2 (Service Pack 1) do not natively provide the capability to reclaim space. Microsoft has provided an alternative through a tool called sDelete. This tool can be downloaded from TechNet. After downloading and extracting the sDelete.zip file contents there is an sdelete and sdelete64.

Note:

If FlashArray utilization is high (80-90%), Garbage Collection (GC) will handle the space clean-up after host side deletion. Be aware that GC could take some time to complete.

sDelete is a command line utility that allows you to delete one or more files and/or directories, or to cleanse free space on a logical disk. sDelete accepts wild card characters as part of the directory or file specifier.


usage: sdelete [-p passes] [-s] [-q] <file or directory> ... sdelete [-p passes] [-z|-c] [drive letter] ...
-a Remove Read-Only attribute
-c Clean free space
-p passes Specifies number of overwrite passes (default is 1)
-q Don't print errors (Quiet)
-s or -r Recurse subdirectories
-z Zero free space (good for virtual disk optimization)
Note:

When utilizing the -z option, a balloon file is generated. Please evaluate the space available before performing this option.

Example of this command:


PS C:\Users\Administrator\Downloads\SDelete> .\sdelete64.exe -p 1 -s -z D:

SDelete v2.0 - Secure file delete
Copyright (C) 1999-2016 Mark Russinovich
Sysinternals - www.sysinternals.com

SDelete is set for 1 pass.
Cleaning free space on D:\: 100%