Command Line Interface

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

Main Commands:


Command:

Arguments:

Description:

Example:

/files

"path1" "path2"

Deletes the specified files/folders.

XLDelete2.exe /files "C:\Temp\File1.txt" "C:\Temp\File2.txt"

/filelist

"list1" "list2"

Deletes all files and folders specified in the list file(s). (A list file is a text file with one file path per line.)

XLDelete2.exe /filelist "C:\Temp\MyFileList.txt"

/cleandir

"path1" "path2"

Deletes all subfolders and files in the specified paths. Keeps the root folder.

XLDelete2.exe /cleandir "C:\Temp"

/recycler

N/A

Deletes all files in the recycle bin.

XLDelete2.exe /recycler

/freespace

"Drive Letter"

Cleans the free space of the selected drive.

XLDelete2.exe /freespace "C"

/ftpurge

"Drive Letter"

Cleans the drives file table.

XLDelete2.exe /ftpurge "C"

/cleaner

N/A

Runs the cleaner. (Use in conjunction with the cleaner options.)

XLDelete2.exe /cleaner

/task

"task name"

Runs the specified task. (This can not be used in conjunction with any other option.)

XLDelete2.exe /task "My Custom Task"

/ff

N/A

Process all failed files.

XLDelete2.exe /ff

/help

N/A

Display the command line help.

XLDelete2.exe /help

 

Other Commands: (These can be used with any of the main commands.)


Command:

Arguments:

Description:

Example:

/wtype

Wipe Number (See Table)

Specifies the wipe type to use. (Uses default if none is specified.)

XLDelete2.exe /files "C:\Temp\File1.txt" "C:\Temp\File2.txt" /wtype 2

/custom

"Custom Wipe Name"

Specifies a custom wipe type to use.

XLDelete2.exe /files "C:\Temp\File1.txt" "C:\Temp\File2.txt" /custom "My Custom Wipe"

/nowarn

N/A

Do not show the delete warning dialog. (Hides the confirmation dialog when using /recycler option.)

XLDelete2.exe /files "C:\Temp\File1.txt" "C:\Temp\File2.txt" /nowarn

/nodialog

N/A

Hide all dialogs.

XLDelete2.exe /cleandir "C:\Temp" /nodialog

/autoclose

N/A

Close all dialogs when an operation completes.

XLDelete2.exe /cleandir "C:\Temp" /autoclose

/verbose

N/A

Report delete status to the command line.

XLDelete2.exe /filelist "C:\Temp\MyFileList.txt" /verbose

/ignorefailed

N/A

Do not try to remove files that failed to delete on reboot.

XLDelete2.exe /filelist "C:\Temp\MyFileList.txt" /ignorefailed

/prompt

N/A

Show a confirmation dialog before running a task. Can only be used with the /task command

XLDelete2.exe /task "My Custom Task" /prompt

 

Wipe Numbers:


Number:

Wipe Type:

0

Gutmann

1

DoD-7

2

NAVSO RLL

3

NAVSO MFM

4

VSITR

5

Schneier

6

NATO

7

Gutmann Subset

8

DoD-3

9

AFSSI5020

10

Random

11

Quick

 

Cleaner Options:


Use these in conjunction with the /cleaner option to control what to clean.

Option:

Description:

/iecookies

Clean Internet Explorer cookies.

/iehistory

Clean Internet Explorer history.

/ietemp

Clean Internet Explorer temp files.

/ieindex

Clean Internet Explorer index files.

/ffcookies

Clean Firefox cookies.

/ffhistory

Clean Firefox history

/fftemp

Clean Firefox temp files.

/gccookies

Clean Chrome cookies.

/gchistory

Clean Chrome history.

/gctemp

Clean Chrome temp files.

/ascookies

Clean Safari cookies.

/ashistory

Clean Safari history.

/astemp

Clean Safari temp files.

/clipboard

Clean clipboard data.

/systemp

Clean system temp files.

/usertemp

Clean user temp files.

 

Examples:


XLDelete2.exe /files "C:\Users\User\Desktop\MyPicture.jpg" /wtype 1 /nowarn /autoclose

This command will delete the MyPicture.jpg file on your desktop using the DoD-7 wipe type it will not show the warning dialog and will automatically close the delete progress dialog when finished.

 

XLDelete2.exe /recycler /nowarn

This command cleans the recycle bin and will not show the confirmation dialog.

 

XLDelete2.exe /cleaner /iecookies /iehistory /ietemp /ieindex /nodialog /ignorefailed

This command cleans the Internet Explorer cookies, history, temp, and index files. It will not show any dialogs and ignore any files that failed to delete.

 

XLDelete2.exe /files "C:\Temp\MyFile.txt" /cleandir "C:\My Secret Folder" /cleaner /clipboard /systemp /recycler /wtype 11 /nowarn

This command will delete the C:\Temp\MyFile.txt file, delete the "C:\My Secret Folder" folder and any files in it, clean the cleaner to clean the clipboard and system temp files, and clean the recycle bin without showing any warning dialog all using the Quick wipe type.  This shows how you can combine all command together.

 

XLDelete2.exe /task "My Custom Task"

This command runs the task called "My Custom Task". See Using Tasks for information on how to create tasks. It is easier to define a task and run it using the /task command than it is to specify each command individually on the command line.

 

Running Tasks On Shutdown: (Using the Windows Group Policy Editor)


1.Type in "gpedit.msc" and hit enter in the Windows search bar.

2.Expand the "Windows Settings" folder under  "User Configuration".

3.Select the Scipts (Logon/Logoff) option.

4.Double click on the Logoff property on the right hand pane to open the Logoff Properties dialog.

5.Click on "Add.." button.

6.Use the "Browse..." button on the Script Name text box to find the XL Delete executable. Usually located under "C:\Program Files\XL Delete 2\XLDelete2.exe"

7.Enter the command line options to run in the Script Parameters text box.

8.Press ok on all the open dialogs to close them.

9.Windows will run XL Delete using the command line options you specified every time you shutdown.

TIP: Create a task to simplify the command line options.  This will also allow you to use the /prompt option so you can skip the shutdown task manually.

Page url: http://www.xldevelopment.net/help/xldelete?command_line_interface.htm