Delete
UiPath.Core.Activities.Delete
Description
Deletes the file or folder in the specified location. If a folder that contains multiple files or folders is specified, they are all deleted.
Project compatibility
Windows - Legacy | Windows | Cross-platform
Cross-platform configuration
- Path - The path to the file or directory to be permanently deleted as a
ILocalResourcevariable. You can toggle between using a local path or a variable ofIResourcetype. If you are using a local path, relative folder paths are recommended to account for the different file structure between Windows and Linux machines when executing a project. Example:newFolder/otherFolder.
Advanced options
Common
- Continue On Error - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
note
If this activity is included in Try Catch and the value of the Continue On Error property is
True, no error is caught when the project is executed.
Windows - Legacy, Windows configuration
Properties panel
Common
- DisplayName - The display name of the activity.
- Continue On Error - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
note
If this activity is included in Try Catch and the value of the Continue On Error property is
True, no error is caught when the project is executed.
File
- Path - The path of the file or directory to be permanently deleted.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.