DELS.EXE
Usage
DELS [/age##] [/dif] [/nf] [/nologo] [/nr] [/ns] [/nw] [/q] [/rb] [/shred] [/test] filespec [/xf filespec] [/xd folder]
Where filespec specifies the file(s) to be deleted.
Switches:
/age## | Only delete files that are at least this age, in days. |
/dif | On failure, delete the file during the next reboot. May require admin rights. |
/nf | Don't list each file as it is deleted. |
/nologo | Don't display the program banner. |
/nr | Don't recursively enter subfolders. |
/ns | Don't display the operation summary. |
/nw | Don't report warnings in the file specification. |
/q | Suppress all output. |
/shred | Shred the file so that it cannot be recovered. Complies with NIST SP-800-88 guidelines. |
/rb | Put files in Recycle Bin instead of permanently deleting. |
/test | Test only - no deleting. |
/xd | Exclude each folder that follows this switch. |
/xf | Exclude each file that follows this switch. |
Example
For example, Gammadyne uses this to delete all of our object compiler intermediate files:dels /nf /age7 f:\projects\*.obj;
Sample Output:
DELS.EXE 4.1 - Recursive File Deletion Utility - www.Gammadyne.com
Copyright (C) 2001-2024 by Greg Wittmeyer - All Rights Reserved
Deleting F:\PROJECTS\AutoTweak\
Deleting F:\PROJECTS\Scratchboard\
Deleting F:\PROJECTS\Gammadyne Mailer\
Deleting F:\PROJECTS\Console\
Deleting F:\PROJECTS\All\
Deleting F:\PROJECTS\Eclient\
4 files deleted successfully
1 files could not be deleted
1 files were not old enough
Total size of file specification: 34,741,983 bytes
Notes
- We are not responsible for damage caused by the use of this program, or any other program, even if it contains bugs. This is a powerful program with the ability to seriously screw up your computer.
- You may press the Escape key to abort the operation once it has started.
- When a file specification contains an absolute path, all subsequent file specifications will be relative to that path (but only when using a semi-colon separator). Note that the example above depends on this.
- Deleted files are not moved to the Recycle Bin, they are permanently deleted, unless you specify the /rb switch. For a good undelete utility, we recommend Back2Life.
Download
Click the button below to download version 4.1 of DELS.EXE, released March 14th, 2024.