DelT – Version 2.3b2 – fastest and flexible program to delete a large folders and files in windows (Freeware)
If you need to quickly delete a folder with a large number of files within this program is for you. Also DelT allows you to delete data depending on the size of free disk space, on size, date of change and file attributes. The DelT program implements a deletion algorithm with overwriting of deleted data according to the DoD 5220.22-M standard. rusmikleАТgmail.com Mikhail Tchervonenko
Important: The author is not liable for any consequences of the program DelT. DelT program is in testing phase and may contain errors! By launching program DelT you fully accept the responsibility for her work on yourself.
Folder can contain predefined variables: {DATE} – current date, {DATETIME} – the current date and time (format variable {DATETIME} you can change with this key /DTF), {YEAR} – year number, {MONTHNAME} – name of the month, {DAYNAME} – weekday name, {MONTHOFYEAR} – month number of the year, {WEEKOFYEAR} – week number of the year, {WEEK OF MONTH} – week number of the month, {DAYOFYEAR} – day number of the year, {DAYOFMONTH} – day number of the month, {DAYOFWEEK} – day number of the week, {HOUR} – hour, {MIN} – minutes, {SEC} – seconds, {MSEC} – millisecond In all date and time variables, you can add or subtract values. For example {WEEKOFYEAR-1} will take one week from the current week number in the year and {DAYNAME+1} will return the name of the next day of the week. Calculations are always made from the current date and time. It is allowed to use (perl compatible) regular expressions in masks: a. Regular expression validation includes the full path to the file or folder, case-insensitive comparison {R=Regular expression} or case-sensitive comparison {r=Regular expression}. b. the regular expression check does not include the full path to the file or folder, case-insensitive comparison {E=Regular expression} or case-sensitive comparison {e=Regular expression}.
Keys
/? or /H – this help /RUS russian help /S use PowerShell (removes paths longer than 255 characters) /M or /R move to recycle bin /MF[ FileMask[ FileMask] …] Move only files to trash. Default mask * (all). /NMF[ FileMask[ FileMask] …] Do not move files to the trash. Default mask * (all). /MD[ FoldersMask[ FoldersMask] …] Move only folders to the trash. Default mask * (all). /NMD[ FoldersMask[ FoldersMask] …] Do not move to the trash folder. Default mask * (all). /OF[ FileMask[ FileMask] …] delete only files matching masks, leaving folders. Default mask * (all). /NOF[ FileMask[ FileMask] …] do not delete files matching masks, leaving folders. Default mask * (all). /OD[ FoldersMask[ FoldersMask] …] delete only folders matching masks. Default mask * (all). /NOD[ FoldersMask[ FoldersMask] …] delete only folders that are matching masks. Default mask * (all). /NDD[ FoldersMask[ FoldersMask] …] Do not delete folders with the specified mask if they contain subfolders, Default mask * (all). /NDF[ FoldersMask[ FoldersMask] …] Do not delete folders with the specified mask if they contain files, Default mask * (all). /NDA[ FoldersMask[ FoldersMask] …] Do not delete folders with the specified mask if they contain folders and/or files, Default mask * (all). /PT[ FoldersMask[ FoldersMask] …] pass-through of all folders and subfolders. Default mask * (all). Allows you to use other keys for subfolders. /NPT[ FoldersMask[ FoldersMask] …] prevent pass-through folders and subfolders. Default mask * (all). It makes sense only in combination with the key /PT /OSD only files and subfolders delete, leaving main folder (not compatible mit key /OF) /MIN FreeSize The minimum free space in the target volume in bytes below which deletion occurs. /RW[ FileMask[ FileMask] …] before deleting seven times overwrite the contents of files according to the standard 5220.22-M. Default mask * (all). Not compatible mit keys /M or /R ! Greatly slows down deletion! /NRW[ FileMask[ FileMask] …] Do NOT overwrite the contents of files as specified in 5220.22-M before deleting seven times. It makes sense only in combination with the /RW key. Default mask * (all). IMPORTANT! If you create shadow copies, do not forget to delete them. /T Test mode. A list of objects to delete is displayed on the screen. The deletion itself does not occur. /L Display a log (slows removal!) /P Pause at the end of the program /TM[ Nsec] Delete only files with date and time changes within the last Nsec seconds (countdown from the current time). Default Nsec = 3600 (one hour) /NTM[ Nsec] Delete only files with the date and time of the change older than Nsec seconds (countdown from the current time). Default Nsec = 3600 (one hour) /DT[ Ndays] Delete only files with the date of change within the last Ndays days (countdown from the current date, time is discarded and is not taken into account). Default Ndays=0 (today) /SZF NSizeBytes Delete only files larger than or equal to NSizeBytes bytes. /SZT NSizeBytes Delete only files smaller than or equal to NSizeBytes bytes /DTS DD.MM.YYYY Delete only files with a change date greater than or equal to DD.MM.YYYY date (eg 01.09.2015) day of the month, MM is the month, YYYY is the year. Important – leading zeros are required! /DTE DD.MM.YYYY Delete only files with a change date less than than or equal to DD.MM.YYYY date (eg 01.09.2015) (where DD is the day of the month, MM is the month, YYYY is the year. Important – leading zeros are required! /AF [FileMask1=]Attributes1[ [FileMask2=]Attributes[ ….]] Delete files with the specified mask depending on the attributes. Attributes that start with a plus sign – add the file to the list for deletion and with a minus sign – are excluded from the delete list. Possible attributes R – read only, A – archive, S – system, H – hidden, C – compressed, N – not indexed, O – not connected, E – encrypted, T – temporary. The shortened form is allowed – without the file mask and the equal sign, in this case the mask will be the default * For example: /AF -H-S *.doc=+A *.tmp=-A /DTF [Mask date] mask the date and time to output (used in variables {DATETIME}). (default mask yyyymmddhhnnss) Date mask can contain the following control characters: y = Year of the last 2 digits, yy = year from the last 2 digits, yyyy = year 4-digit, m = number of the month without 0, mm = month number as 2 digits, mmm = Month using ShortDayNames (Jan), mmmm = month using LongDayNames (January), d = number without 0, dd = 2 as the number of digits, ddd = number using ShortDayNames (Sun), dddd = number using LongDayNames (Sunday), ddddd = number in ShortDateFormat, dddddd = number in LongDateFormat, c = Using ShortDateFormat + LongTimeFormat, h = hour without 0, hh = hour as a 2 digit, n = minutes without 0, nn = minutes as 2 digits, s = seconds without 0, ss = Seconds as 2 numbers, z = Milliseconds without 0, zzz = Milliseconds as 2 digits, t = Using ShortTimeFormat, tt = Using LongTimeFormat and any other permissible in file names and folder symbols. /CP CodePage – Code page number for the console output (default 65001 – UTF8). Possible values: 0 – ANSI, 1 – OEM, 2 – MAC, 3 – threads ANSI, 866 – OEM RUS, 65000 – UTF7, 65001 – UTF8 etc -1 (Minus) turns off the coding changes. Console font should allow display of this encoding! (Consolas for UTF8)
Examples
Example 1: delt c:\Temp Recursively delete folder c:\Temp without transferring it to recycle bin Example 2: delt c:\Temp /M Move folder c:\Temp to recycle bin Example 3: delt c:\Backup\{WEEKOFYEAR-1} /S /MIN 130000000000 Quickly recursively delete folder c:\Backup\(previous week number of the year) if there is less than 130 GB of free space left on the disk without transferring it to recycle bin. Note for example 3: if the command delt c:\Backup\{WEEKOFYEAR-1} /S /MIN 130000000000 is run before the backup command: copymikc:\Dociments c:\Backup\Documents\{WEEKOFYEAR} /b then the disk is always guaranteed to be 130 gigabytes of free space for backup. Example 4: delt e:\temp\test /PT /OF *.doc /NOD /RW /DTS 19.02.2019 /DTE 19.02.2019 Delete all files created/changed with 02/19/2019 with the mask * .doc without transferring it to recycle bin, before overwriting their contents according to the standard 5220.22-M in all folders and subfolders, without deleting folders Example 5: delt e:\temp\test /S Delete the folder with all its contents through Shell without transferring to the recycle bin (slower but works with superlong paths) Example 6: delt e:\temp\test /RW Delete folders and files before overwriting the contents of files according to standard 5220.22-M without transferring it to recycle bin Example 7: delt e:\temp\test /OF /NOD Clear the head folder from all files without transferring it to recycle bin Example 8: delt e:\temp\test /PT /OF /NOD Clear all folders and subfolder from all files without transferring it to recycle bin Example 9: delt e:\temp\test /PT /NDF /NOF Delete all empty folders and subfolders from files without transferring it to recycle bin Example 10: delt e:\temp\test /PT /NDA /NOF /OD *\Tmp *\Temp Delete all Tmp and Temp folders and subfolders if they are empty without transferring it to recycle bin Example 11: delt e:\Backup\test /PT /OF *\Tmp\* *\Temp\* /NOD Clear all folders and subfolders Tmp and Temp from all files without transferring it to recycle bin, without deleting folders Example 12: delt e:\temp\test /PT /OF *.tmp *.log /NOD Clear all Tmp folders and subfolder from files with *.tmp and *.log mask without transferring it to recycle bin, without deleting folders Example 13: delt e:\temp\test /PT /OF *\Tmp\*.log *\Tmp\*.tmp /NOD Clear all Tmp folders and subfolders from files with *.log and *.tmp mask without transferring it to recycle bin, without deleting folders Example 14: delt e:\temp\test /PT /OF /AF *=-S-H /NOD Delete all files in folders and subfolders except hidden and system folders without transferring it to recycle bin, without deleting folders Example 15: delt e:\temp\test /PT /OF /TM 600 /NOD Delete all files in folders and subfolders created/changed within the last 10 minutes without transferring it to recycle bin, without deleting folders Example 16: delt e:\temp\test /PT /OF /DT 1 /NOD Delete all files in folders and subfolders created/changed in today and yesterday without transferring it to recycle bin, without deleting folders Example 17: delt e:\temp\test /PT /OF *\Tmp\*.log /SZF 10000 /NOD Delete all log files in Tmp folders and subfolders larger than 10,000 bytes without transferring it to recycle bin, without deleting folders Example 18: delt e:\Temp\Test /M /NMF *.tmp *.log /PT Move to recycle bin all files from all folders and subfolders except the files with the mask * .tmp and * .log Example 19: delt e:\temp\test /PT /NTM 60 /TM 120 /NOD Delete all files, the modification time of which lies between 60 and 120 seconds since the launch of delt in folders and subfolders