Delete Activity
The Delete activity permanently removes specified files or folders from the system. Once deleted, these items cannot be recovered and are not sent to the Recycle Bin.
| Field | Description | Requirement |
|---|---|---|
| File name | The full path to the file or folder to be deleted. Wildcards (*) can be used to specify multiple files or all contents of a folder. | Required |
Action Types & Examples
Specific File or Folder Path
- Format:
string - Example Result:
C:\Temp\Test.xlsx
Folder Path with All Contents Wildcard
- Format:
string - Example Result:
C:\Temp\*
File Path with Name Wildcard and Specific Extension
- Format:
string - Example Result:
C:\Temp\a\*.txt
File Path with All Files Wildcard
- Format:
string - Example Result:
C:\Temp\*.*
Implementation Examples
Field Setup - File name: C:\Data\Archive\OldFiles - File name: C:\Logs\AppErrors.log - File name: C:\Temp\*.tmp
Execution Parameters - Delete specific file: C:\Users\Public\document.pdf - Delete all files in a directory: C:\ProgramData\Cache\*.* - Delete a specific folder: C:\Projects\OldProject
Technical Notes
The Delete activity performs a permanent deletion. Files and folders removed by this activity are not moved to the Recycle Bin and cannot be recovered through standard system recovery methods.