> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sndbox.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete File or Folder

> Delete an explicitly approved path. Exact configuration, ports, placement, and execution behavior.

**Node type:** `delete_path` · **Version:** `1` · **Category:** System

Delete an explicitly approved path. This node can change external state or produce an external side effect.

## Configuration

| Field       | Type    | Default | What it controls                                                                |
| ----------- | ------- | ------- | ------------------------------------------------------------------------------- |
| `path`      | path    | `""`    | Approved local file or folder path.                                             |
| `recursive` | boolean | `false` | Include nested folders, or permit recursive deletion for Delete File or Folder. |

<Note>The selected path must be inside an approved folder. Test runs require an additional destructive-action confirmation.</Note>

## Workflow JSON

The editor stores this node with the following implemented default configuration:

```json title="Default node configuration" theme={"system"}
{
  "type": "delete_path",
  "version": 1,
  "configuration": {
    "path": "",
    "recursive": false
  }
}
```

Values may be entered literally or mapped from an earlier compatible output when the inspector exposes a mapping control. See [Variables and data mapping](/workflows/variables-and-data).

## Inputs

This node has no typed ports in this direction.

## Outputs

| Port     | Type  | Required | Description |
| -------- | ----- | -------- | ----------- |
| `result` | `any` | No       | Result      |

## Where it can run

* Desktop local runner
* Paired self-hosted runner
* Hosted runner

## Test and inspect

Use **Test node** in the editor to preview this step with the current configuration. A full run records resolved inputs, outputs, logs, duration, and any artifacts in the execution inspector. Side-effecting or destructive nodes can require an additional confirmation or approved workflow permission.
