# FTP delete

### Description

The `FTP delete` action deletes files on an FTP server.

### Options

#### General tab

| Option                     | Description                                                                                                                                                                                                                                         |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action name                | The name of the workflow action.                                                                                                                                                                                                                    |
| Server                     |                                                                                                                                                                                                                                                     |
| Protocol                   | <ul><li>FTP</li><li>FTPS</li><li>SFTP</li><li>SSH</li></ul>                                                                                                                                                                                         |
| FTP server name/IP address | The name of the server or the IP address.                                                                                                                                                                                                           |
| Server Port                | Port number of the FTP server.                                                                                                                                                                                                                      |
| Username                   | The user name associated with FTP server account.                                                                                                                                                                                                   |
| Password                   | The password associated the FTP server account.                                                                                                                                                                                                     |
| Connection type            | <p>FTPS connection type.</p><ul><li>FTP</li><li>Implicit SSL</li><li>Authentication SSL</li><li>Implicit SSL with crypted FTP connection</li><li>Authentication TLS</li><li>Implicit TLS</li><li>Implicit TLS with crypted FTP connection</li></ul> |
| Use proxy                  | Whether or not to use a proxy.                                                                                                                                                                                                                      |
| Proxy host                 | Proxy server host name.                                                                                                                                                                                                                             |
| Proxy port                 | Proxy server port number.                                                                                                                                                                                                                           |
| Proxy username             | Proxy server account user name.                                                                                                                                                                                                                     |
| Proxy password             | Proxy server account password.                                                                                                                                                                                                                      |
| Use Public Key             | Whether or not to use a public key with an SSH connection.                                                                                                                                                                                          |
| Key file                   | The public key file.                                                                                                                                                                                                                                |
| Browse…​                   | Browse the filesystem for a public key file.                                                                                                                                                                                                        |
| Key passphrase             | The public key passphrase.                                                                                                                                                                                                                          |
| Test connection            | Tests the configured connection.                                                                                                                                                                                                                    |

#### Files tab

| Option                                  | Description                                                                                                                                                                                 |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Advanced                                |                                                                                                                                                                                             |
| Timeout                                 | The timeout period.                                                                                                                                                                         |
| Use active FTP connection               | Enable if you are connecting to the FTP server using Active mode; you must set your firewall to accept connections to the port that your FTP client will open. The default is Passive mode. |
| Remote                                  |                                                                                                                                                                                             |
| Copy previous results to args?          | Remote directory                                                                                                                                                                            |
| The directory on the remote FTP server. | Check folder                                                                                                                                                                                |
| Checks if the directory exists.         | Wildcard (regular expression)                                                                                                                                                               |
| Success condition                       |                                                                                                                                                                                             |
| Success on                              | <p>The success condition</p><ul><li>All works fine</li><li>At least we delete x files</li><li>Nr errors less than</li></ul>                                                                 |
| Limit files                             | Sets a limit to the number of deleted files (default 10).                                                                                                                                   |

#### Socks Proxy tab

| Option   | Description                                        |
| -------- | -------------------------------------------------- |
| Host     | Socks Proxy host name.                             |
| Port     | Socks Proxy port number.                           |
| Username | User name associated with the Socks Proxy account. |
| Password | Password associated with the Socks Proxy account.  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/ftpdelete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
