Removes (deletes) a directory from the local system. The directory must be empty (i.e. it must contain no files or subdirectories) in order to be removable. If you need to empty a directory before trying to remove it, use the Delete Files action first.
Action ID: 11
Action Category: Folders
The path of the directory to remove.
Value |
Simple Message |
Verbose Message |
0 (OK) |
|
|
1 - XXX (i.e. 1, 2, 3...N) |
Could not remove directory. |
<<System-defined error message>> |
In this example, we will remove a folder named "setup" from the user's temp directory. This folder was probably used to store temporary installation files.
Note: %TempDir% is a built-in variable.
Directory (folder) name: %TempDir%\setup
See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab