Delete File
Delete a file in the sandbox on a trigger. Deleting a file that is not there does nothing. Emits the file’s path inside the sandbox.
Fired. It runs when an event or a value lands on trigger, and pulls its other inputs at that moment.
Inputs
Section titled “Inputs”| Port | Type | Notes |
|---|---|---|
trigger |
event | Fires the node |
path |
text | Optional |
Outputs
Section titled “Outputs”| Port | Type | Notes |
|---|---|---|
trigger |
event | |
path |
text |
Right-click a knob and pick Convert to input to drive it from a wire.
| Knob | Kind | Default | Notes |
|---|---|---|---|
path |
text | empty |
Example
Section titled “Example”Deletes a file in user/data/files when trigger fires. A file that is already gone is not an error, and a folder is never deleted.
More in Files
Section titled “More in Files”- Append File: Append text to a file in the sandbox on a trigger, creating it if it is not there.
- List Dir: List the names in a folder of the sandbox, fresh each time a node reads it.
- Read File: Read a file’s text from the sandbox, fresh each time a node reads it.
- Write File: Write text to a file in the sandbox on a trigger, creating its folders.