Skip to main content

Delete File

Files & FoldersFilesDeletes files

Delete a file for good. It does not go to the Recycle Bin

Inputs

NameTypeRequiredDefaultDescription
File
filePath
fileRequired
Ignore If Missing
ignoreIfMissing
booleanOptionalfalse
Output Variable
outputVariable
variableOptionalDeleteResult

Output

$outputVariableObject

Object describing the delete result. Reference {DeleteResult.deletedPath}, {DeleteResult.existed}, {DeleteResult.success}, or {DeleteResult} alone (resolves to the deleted file path).

  • successBoolean
  • deletedPathString
  • existedBoolean
  • pathString

Compatibility

WindowsLinuxAttendedUnattended

Related activities