sdelete and seecurely deleting a single file

Michael Schmidt 1 Reputation point
2021-02-03T20:23:34.93+00:00

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 - www.sysinternals.com

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

Sysinternals
Sysinternals
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
    2021-02-13T10:13:54.957+00:00

    It works fine for me if you pass the file name complete with the path:
    67713-capture.jpg

    HTH
    -mario

    1 person found this answer helpful.
    0 comments No comments