- Documentation
- Activities
- Files & Folders
- Delete File
Permanently deletes a file.
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
File filePath | file | Required | — | — |
Ignore If Missing ignoreIfMissing | boolean | Optional | false | — |
Output Variable outputVariable | variable | Optional | DeleteResult | — |
Output
$outputVariableObjectObject describing the delete result. Reference {DeleteResult.deletedPath}, {DeleteResult.existed}, {DeleteResult.success}, or {DeleteResult} alone (resolves to the deleted file path).
successBooleandeletedPathStringexistedBooleanpathString
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Append Text File
Adds text to the end of an existing .txt file.
Copy File
Copies a file to a specified destination while keeping the original file unchanged.
Create File
Creates a new file at the specified location.
File Exists
Checks whether a file exists at the specified path.
Get File Info
Returns metadata about a file: name, size, dates, and read-only flag.
Move File
Moves a file to a new location and removes it from the original location.