
sdelete
User PC and Servers process a lot of data where some of them are secret. This data may be deleted with conventional ways but this may not enough. Because file systems generally removes file metadata but continue to hold real data. Microsoft sysinternals provides sdelete
or secure delete tool which can delete file data really. More information about sysinternals can be get below.
用户PC和服务器会处理许多其中一些秘密的数据。 可以用常规方式删除该数据,但这可能还不够。 因为文件系统通常会删除文件元数据,但会继续保存实际数据。 Microsoft sysinternals提供了sdelete
或安全删除工具,可以真正删除文件数据。 有关sysinternals的更多信息,请参见下面的内容。
下载 (Download)
As stated before sdelete
is provided by sysinternals. So sdelete
can be downloaded from sysinternals site where exact dowload url is provided below.
如前所述, sdelete
由sysinternals提供。 因此,可以从sysinternals站点下载sdelete
,该站点在下面提供了确切的下载URL。
https://download.sysinternals.com/files/SDelete.zip
https://download.sysinternals.com/files/SDelete.zip

完全删除文件(Delete File Completely)
We will start with simple example. We will delete sile named Sdelete.zip
which resides in Users\İsmail Baydan\Downloads
. We can not delete directory without providing recursive option which we will see below. We double quotes to provide file path.
我们将从一个简单的例子开始。 我们将删除位于Users\İsmail Baydan\Downloads
名为Sdelete.zip
文件。 没有提供递归选项,我们将无法删除目录,我们将在下面看到。 我们将双引号引起来以提供文件路径。
PS> sdelete.exe "C:\Users\İsmail Baydan\Downloads\SDelete.zip"

删除只读属性(Remove Read-Only Attribute)
NTFS and FAT file systems provides some protection mechanisms to prevent delete files accidentally. This may create bottleneck if we are sure and want to delete file with sdelete
. In this situations we can provide -a
option which will remove read-only attribute from file before deleting securely. In this exmaple we will delete file named ntds.dit
NTFS和FAT文件系统提供了一些保护机制,以防止意外删除文件。 如果我们确定要删除带有sdelete
文件,则可能会造成瓶颈。 在这种情况下,我们可以提供-a
选项,该选项将在安全删除之前从文件中删除只读属性。 在此示例中,我们将删除名为ntds.dit
文件。
PS> sdelete.exe -a ntds.dit
递归删除文件和文件夹 (Delete Files and Folders Recursively)
Without providing any option we can delete files one by one. This is not efficient way to delete directories those provides a lot of files. By using -r
or -s
recursive option we can delete directories and folders and all of their contents. In this example we will delete folder named Temp
.
如果不提供任何选项,我们可以一个一个地删除文件。 这不是删除提供大量文件的目录的有效方法。 通过使用-r
或-s
递归选项,我们可以删除目录和文件夹及其所有内容。 在此示例中,我们将删除名为Temp
文件夹。
PS> sdelete.exe -s ".\Temp"

零可用空间(Zero Free Space)
Some file formats may hold less data than consumed disk space. This generally happens in virtual machines disk images and formats like vmdk
, vdi
and qcow
. We can use sdelete
to zero free space in this type of files. We will use -z
option. In this example we will zero disk images named ubuntu.vmdk
.
某些文件格式所保存的数据可能少于所占用的磁盘空间。 这通常发生在虚拟机磁盘映像和格式(例如vmdk
, vdi
和qcow
。 我们可以使用sdelete
将此类文件中的可用空间归零。 我们将使用-z
选项。 在此示例中,我们将名为ubuntu.vmdk
磁盘映像置零。
PS> sdelete.exe -z ubuntu.vmdk
指定覆盖通行证 (Specify Overwrite Passes)
Normally sdelete
will overwrite given file data only once. IF we have strict policy like deleting files by overwriting them 5 times we cna use -p
parameter with number of passes. Higher number of passes will be more secure but will take more time. In this example we will overwrite file named password.txt
5 time.
通常, sdelete
只会覆盖给定的文件数据一次。 如果我们有严格的政策,例如通过覆盖文件5次来删除文件,那么我们可以使用带有通过次数的-p
参数。 通过次数越多越安全,但是会花费更多时间。 在此示例中,我们将覆盖5次名为password.txt
文件。
PS> sdelete.exe -p 5 password.txt
翻译自: https://www.poftut.com/delete-file-folders-completely-securely-sdelete-windows/
sdelete