sdelete and seecurely deleting a single file

Michael Schmidt 1 Reputation point

when I try to use sdelete to securely delete a single file I get the message "No file/folders found that match <filename>"

Here is the output - repro

e:\src\GQGPartners\gqg>echo example > example.txt

e:\src\GQGPartners\gqg>e:\tools\sdelete -p 10 example.txt

SDelete v2.04 - Secure file delete
Copyright (C) 1999-2019 Mark Russinovich
Sysinternals -

SDelete is set for 10 passes.
e:\src\GQGPartners\gqg\example.txt...Scanning file: Reached the end of the file.
No files/folders found that match example.txt.

The help for sdelete shows

usage: sdelete [-p passes] [-r] [-s] [-q] <file or directory> [...]

So my question is how to use sdelete to remove a single file securely

Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,103 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. mariora 376 Reputation points

    It works fine for me if you pass the file name complete with the path:


    1 person found this answer helpful.
    0 comments No comments