FileDeleteActivity
Category: File Operations Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain
Overview
FileDeleteActivity (Delete File) is a node used to delete files in the process. It inherits from ActionActivity and supports deleting files at a specified path.
Business Scenarios
Applicable Scenarios
- Temp File Cleanup: Delete temporary files generated by the process.
- Data Cleanup: Delete expired or invalid data files.
- Space Release: Delete unneeded files to release disk space.
Configuration Description
Basic Configuration
| Property Name | Type | Required | Default | Description |
|---|---|---|---|---|
| FilePath | string | Yes | - | File path to delete |
Usage Examples
Basic Example
{
"Type": "FileDeleteActivity",
"Name": "Delete Temp File",
"Alias": "DeleteTemp",
"FilePath": "C:\\Temp\\process_temp.txt"
}
Notes
- ⚠️ Silently skips if the file does not exist, no exception thrown.
- ⚠️ Deletion is irreversible, use with caution.
- ⚠️ Ensure the process running account has file deletion permissions.
- 💡 Recommended to backup important files before deletion.
Related Nodes
- FileCopyActivity: Copy File Node
- FileMoveActivity: Move File Node
Update History
| Date | Version | Description |
|---|---|---|
| 2025-11-28 | 1.0 | Initial version |
Last updated: 2025-11-28