The Remove File or Directory activity removes a file or a directory on an SFTP server, including subdirectories, when configured.

Input variables

Output variables

Table 2. Remove File or Directory output variables
Variable Description
errorMessage The executionResult.errorMessages from the Activity designer parsing sources. If this variable is not null, the operation has failed.
result Either success or failure.
deletionResults The deletionResults array contains these attributes:
  • fullPath: Full path to the file or directory targeted.
  • status: Either succeeded or failed.
  • reason: Text message describing the cause of a failure.

Conditions

Table 3. Remove File or Directory conditions
Condition Description
Success The activity succeeded in removing the file or directory specified.
Failure The activity failed to remove the file or directory specified.