none
sdelete is broken RRS feed

  • Question

  • Hello --- what is the correct  syntax here ---- I am trying to expunge an entire directory --- it seems that sdelete is  broken and this  has been the case for years  

    <(fpe1001/win7sys32/931)c:\users\frank\appdata\local\temp(0,0)>sdelete -r -sfoo

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

    usage: sdelete [-p passes] [-r] [-s] [-q] <file or directory> [...]
           sdelete [-p passes] [-z|-c [percent free]] <drive letter [...]>
           sdelete [-p passes] [-z|-c] <physical disk number>

       -c         Clean free space. Specify an option amount of space
                  to leave free for use by a running system.
       -p         Specifies number of overwrite passes (default is 1)
       -r         Remove Read-Only attribute
       -s         Recurse subdirectories
       -z         Zero free space (good for virtual disk optimization)
       -nobanner  Do not display the startup banner and copyright message.

    Disks must not have any volumes in order to be cleaned.


    <(fpe1001/win7sys32/931)c:\users\frank\appdata\local\temp(0,-1)>sdelete -r -s foo

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

    SDelete is set for 1 pass.

    Cleaning disk foo:

    Error opening disk foo:

    The system cannot find the file specified.

    Wednesday, March 13, 2019 9:52 PM

Answers

  • Hi,

    Try typing the full path to the folder, example below:

    Example:

    The folder is located at C:\Temp\RootFolder\SubFolder

    You want to delete Subfolder, run the following command:

    sdelete64.exe -r -s "C:\Temp\RootFolder\SubFolder"


    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    wow -- that worked --- I would be worried that the full path might get deleted 

    • Marked as answer by fpefpe Friday, March 15, 2019 1:02 PM
    Wednesday, March 13, 2019 11:35 PM

All replies

  • Hi,

    Try typing the full path to the folder, example below:

    Example:

    The folder is located at C:\Temp\RootFolder\SubFolder

    You want to delete Subfolder, run the following command:

    sdelete64.exe -r -s "C:\Temp\RootFolder\SubFolder"


    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    • Proposed as answer by Leon Laude Wednesday, March 13, 2019 11:57 PM
    Wednesday, March 13, 2019 10:12 PM
  • Hi,

    Try typing the full path to the folder, example below:

    Example:

    The folder is located at C:\Temp\RootFolder\SubFolder

    You want to delete Subfolder, run the following command:

    sdelete64.exe -r -s "C:\Temp\RootFolder\SubFolder"


    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    wow -- that worked --- I would be worried that the full path might get deleted 

    • Marked as answer by fpefpe Friday, March 15, 2019 1:02 PM
    Wednesday, March 13, 2019 11:35 PM
  • You're welcome!

    Blog: https://thesystemcenterblog.com LinkedIn:

    Wednesday, March 13, 2019 11:57 PM
  • If you have any other concerns, feel free to ask!

    (Please don't forget to mark as answer)


    Blog: https://thesystemcenterblog.com LinkedIn:

    Friday, March 15, 2019 10:02 AM
  • I've been using sdelete for deleting files from my Laptop and it works like a charm. However I recently discovered that when I try to delete files/folders from an External device like Pendrive or External Harddisk, it gives following message :

    Disks must not have any volumes in order to be cleaned.

    Can Anyone help me with this??

    following is the command i used:

    sdelete64 -p5 -s "E:\MYHDD\Folder\SubFolder"

    Thursday, October 29, 2020 2:56 PM