FlowmageDocs

Delete

Changes data

Deletes a file and every version of it — there is no undo.

Settings

SettingWhat it is
File nameRequiredDeletes 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
KeyValue
nametexta file name, listed in `requires.files`

Output

FieldType
deletedDeleted (false when the file was already gone)boolean
nameFile namestring
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
}