FTP Remove directory function

The FTP Remove directory function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the Remove directory function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the FTP Remove directory option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
NameYesText-The name of the FTP connection to use
PathYesText-The path of the directory to remove on the remote server

Output variables

This action does not produce output variables.


Errors

ErrorDescription
Connection not foundNo connection exists with the specified name
Directory not foundThe remote directory does not exist
Not emptyThe 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

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.