Settings
| Setting | What it is |
|---|---|
| File nameRequired | Deletes the file and every version of it; an archived file is deleted too. A name that does not exist is not an error — the node answers deleted: false. |
Technical details
| Key | Value |
|---|---|
name | texta file name, listed in `requires.files` |
Output
| Field | Type |
|---|---|
deletedDeleted (false when the file was already gone) | boolean |
nameFile name | string |
Sample output, and the expression for each field
- deletedfalse
- name"gone.txt"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"name": "<file name>"
},
"label": "Delete",
"type": "file.delete",
"version": 1
}