Help Centre › Building Processes
This article describes the RPA FTP functionality to remove a directory on a remote server.
For a full list of available functions, please read FTP functions.
Description
The Remove directory function removes a directory on the remote server. The directory must be empty before it can be removed.
Setting it up
To use the Remove directory function, follow these instructions:
{{popups:rpas/add:action=ftp-rmdir}}
Once on a process map:
- Navigate to the process where you would like to add the Remove directory function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the FTP Remove directory option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Name | Yes | Text | - | The name of the FTP connection to use |
| Path | Yes | Text | - | The path of the directory to remove on the remote server |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Connection not found | No connection exists with the specified name |
| Directory not found | The remote directory does not exist |
| Not empty | The directory is not empty and cannot be removed |
Tips
- The directory must be empty before it can be removed
- Delete all files inside the directory first using ftp-delete