Deletes files from the local system.
Action ID: 8
Action Category:
File Operations
The path and file name of the files to delete (this can include the wildcards "*" and "?").
If checked, the delete command will recurse through subdirectories when a wildcard is used in the Source field.
If checked, the delete operation will continue even if some files fail to be deleted. If unchecked, the delete operation will stop as soon as the first error occurs.
If checked, files with the "hidden" or "system" attributes set will be deleted. If unchecked, hidden and system files will not be deleted.
Value |
Simple Message |
Verbose Message |
0 (OK) |
|
|
1 |
Could not delete file(s). |
Invalid source specified. |
2 |
Could not delete file(s). |
One or more files could not be deleted. |
In this example, we will delete a file called "mycontrol.dll" from the user's system directory.
Source: %SysDir%\mycontrol.dll
In this example, we will delete all files and subfolders of the "backup" subfolder in the main program directory.
Source: %SrcDir%\backup\*.*
Recurse subdirectories: Checked
See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab