- Documentation
- Activities
- Files & Folders
- Delete File
Delete a file for good. It does not go to the Recycle Bin
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
Add text to the end of a text file
Copy File
Copy a file somewhere else, leaving the original where it is
Create File
Create a file, with or without starting text in it
Download from URL
Download a file from a web address and save it to your computer
File Exists
Check whether a file is there
Get File Info
Get a file's name, size, dates, and whether it is read-only