Deletes one or more files.
More...
Inherits IntegrationAction, and ISourceFilesOptions.
|
bool | InMultipleFilesMode [get, set] |
| Specifies whether the action is in multiple-files mode. If the value of this property is true, the files in SourceFolder that match FileFilter will be deleted. The default value is false. More...
|
|
FileTarget | File [get, set] |
| Specifies the file to be deleted. For information about how to specify a file in different file systems, see FileTarget. Valid only when the value of InMultipleFilesMode is false. More...
|
|
FolderTarget | MultiFilesSourceFolder [get, set] |
| Specifies the source folder of the files when multiple-files mode is used. For information about how to specify a folder in different file systems, see FolderTarget. Valid only when the value of InMultipleFilesMode is true. More...
|
|
FileFilter | FileFilter [get, set] |
| Specifies the filter properties to use to filter files. More...
|
|
bool | FailIfNotExist [get, set] |
| Specifies whether the action fails if the specified file does not already exist. The default value is true. More...
|
|
|
Describes the common action properties for Actions and ActionGroups.
|
string | Name [get, set] |
| Specifies the name. This property cannot be empty and must be unique in the YAML script. More...
|
|
string | Description [get, set] |
| Specifies the description. The default value is "". More...
|
|
ActionRunType | RunType [get, set] |
| Runs the action by using one of the following types: More...
|
|
bool | IgnoreErrors [get, set] |
| Specifies whether to ignore errors and continue with the next action. Valid only for Action and ActionGroup. The default value is false. More...
|
|
int | FailureRetries [get, set] |
| Specifies the number of times that the action is retried if it fails. Available only for Action. The default value is 0. More...
|
|
int | RetryInterval [get, set] |
| Specifies the interval, in milliseconds, that elapses when a failed action is retried. Valid only when the value of FailureRetries is greater than 0. Available only for Action. The default value is 10000. More...
|
|
Deletes one or more files.
For common action properties, see IntegrationAction.
Example in which one file is deleted:
Actions:
- DeleteFileAction:
# And more common action properties
...
FileTarget File
Specifies the file to be deleted. For information about how to specify a file in different file syste...
Definition: DeleteFileAction.Properties.cs:80
Example in which a file filter is used to delete multiple files:
Actions:
- DeleteFileAction:
FilePattern: '*.failed'
FilesOlderThan: 300000
# And more common action properties
...
bool InMultipleFilesMode
Specifies whether the action is in multiple-files mode. If the value of this property is true,...
Definition: DeleteFileAction.Properties.cs:73
FolderTarget MultiFilesSourceFolder
Specifies the source folder of the files when multiple-files mode is used. For information about how ...
Definition: DeleteFileAction.Properties.cs:89
FileFilter FileFilter
Specifies the filter properties to use to filter files.
Definition: DeleteFileAction.Properties.cs:94
string Name
Specifies the name. This property cannot be empty and must be unique in the YAML script.
Definition: IntegrationAction.Properties.cs:87
◆ InMultipleFilesMode
Specifies whether the action is in multiple-files mode. If the value of this property is true, the files in SourceFolder that match FileFilter will be deleted. The default value is false.
◆ File
Specifies the file to be deleted. For information about how to specify a file in different file systems, see FileTarget. Valid only when the value of InMultipleFilesMode is false.
◆ MultiFilesSourceFolder
Specifies the source folder of the files when multiple-files mode is used. For information about how to specify a folder in different file systems, see FolderTarget. Valid only when the value of InMultipleFilesMode is true.
◆ FileFilter
Specifies the filter properties to use to filter files.
Example:
FilePattern: '*.txt'
MaximumFileSize: 65536
FilesOlderThan: 3600000
Valid only when the value of InMultipleFilesMode is true.
◆ FailIfNotExist
Specifies whether the action fails if the specified file does not already exist. The default value is true.
◆ Name
Specifies the name. This property cannot be empty and must be unique in the YAML script.
◆ Description
Specifies the description. The default value is "".
◆ RunType
Runs the action by using one of the following types:
◆ IgnoreErrors
Specifies whether to ignore errors and continue with the next action. Valid only for Action and ActionGroup. The default value is false.
◆ FailureRetries
Specifies the number of times that the action is retried if it fails. Available only for Action. The default value is 0.
◆ RetryInterval
Specifies the interval, in milliseconds, that elapses when a failed action is retried. Valid only when the value of FailureRetries is greater than 0. Available only for Action. The default value is 10000.
The documentation for this class was generated from the following file:
- DeleteFileAction.Properties.cs