FTP Delete file function

The FTP Delete file function in RPA.

Help CentreBuilding Processes

This article describes the RPA FTP functionality to delete a file on a remote server.

For a full list of available functions, please read FTP functions.


Description

The Delete file function deletes a single file on the remote server.


Setting it up

To use the Delete file function, follow these instructions:

{{popups:rpas/add:action=ftp-delete}}

Once on a process map:

  1. Navigate to the process where you would like to add the Delete file 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 Delete file option
  5. Click "Add" once you are done

Input parameters

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

Output variables

This action does not produce output variables.


Errors

ErrorDescription
Connection not foundNo connection exists with the specified name
File not foundThe remote file does not exist

Tips

  • Use ftp-exists to check if the file exists before deleting
  • This only deletes files, not directories – use ftp-rmdir for directories

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.