# SFTP Delete

<!-- meta: type=sftp-delete; location=Connectors › SFTP; category=Step (action); platforms=Joomla and WordPress (where applicable) -->

## Overview

Deletes a file on a remote SFTP server when the flow runs. Use for retention and cleanup after files are archived elsewhere.

When the flow reaches this step, JOrchestrator executes **SFTP Delete** against your linked site or an external integration, using the field values you set on **General** and **Design**. Downstream steps can read the output payload fields defined for this node.

## Why use this node

SFTP Delete is a **action step** in the **Connectors › SFTP** group. Action steps run in the middle or end of a flow. They perform work on your CMS, call external services, or transform data for the next step.

Typical reasons teams add **SFTP Delete** to a flow:

- Remove files from a secure SFTP inbox after successful processing
- Enforce retention on SFTP archives as part of a scheduled flow
- Delete PGP-encrypted payloads once decrypted and stored in the CMS

## Example workflows

Common patterns on the canvas:

1. **Trigger or Webhook** → upstream steps → **SFTP Delete** → **Send Email** or CMS update
2. **Scheduled trigger** → **SFTP Delete** → **Debug** (while testing) → production action

## How to set it up

Enter host, credentials, and remote path on the Design tab.

## Good to know

Deletes a single file at the given path — uses SSH/SFTP (port 22 by default).

## Properties panel

The designer shows these tabs for this node:

| Tab | Purpose |
|-----|---------|
| **Info** | Plain-language description and output payload fields for downstream steps |
| **General** | Canvas label and read-only node ID |
| **AI** | Optional assistant to help draft settings from plain language |
| **Design** | Node-specific configuration fields |

### System (automatic — not edited by the user)

These fields are managed by the designer or runtime — you do not type into them directly:

| Property key | Label | Type | Required | Visible when | Notes |
|--------------|-------|------|----------|--------------|-------|
| `_nodeId` | Node ID | `node-id` | No | — | — |
| `_payloadFields` | Available Fields | `payload-panel` | No | — | — |

### User-configured — General tab

| Property key | Label | Type | Required | Visible when | Notes |
|--------------|-------|------|----------|--------------|-------|
| `label` | Label | `text` | No | — | Node label |

### User-configured — Design tab

| Property key | Label | Type | Required | Visible when | Notes |
|--------------|-------|------|----------|--------------|-------|
| `timeoutSeconds` | Timeout (seconds) | `number` (default: `30`) | No | — | — |
| `remotePath` | Remote path | `payload-text` | **Yes** | — | /path/to/file.txt |

### CMS-backed (options from the linked site)

| Property key | Label | Type | Required | Visible when | Notes |
|--------------|-------|------|----------|--------------|-------|
| `sftpSiteId` | SFTP site | `sftp-site-select` | **Yes** | — | Required. Choose a site preset saved under Node Configuration → Nodes → SFTP in Joomla or WordPress. |

### CMS site configuration (not on this node's properties panel)

Credentials, API keys, mailers, SMTP, and integration defaults are configured in the CMS plugin under **Node Configuration**, not per step on this node. Link the flow to a domain before testing CMS-backed fields.

## Output payload fields

After this step runs, later nodes can reference these fields using placeholders such as
`{{sftp_delete.success}}`.

| Field key | Type | Description |
|-----------|------|-------------|
| `success` | boolean | Whether the operation completed successfully. |
| `host` | string | Text value from this node's output. |
| `remotePath` | string | Text value from this node's output. |
| `message` | string | Human-readable status, error, or result summary. |

## Validation rules

- **Remote path** (`remotePath`) must be filled before the flow can be saved.

## Related nodes

Other steps in the same area of the palette:

- **SFTP Download** (`sftp-download`) — Connectors › SFTP
- **SFTP List** (`sftp-list`) — Connectors › SFTP
- **SFTP Upload** (`sftp-upload`) — Connectors › SFTP
