delfile
Deletes a file and returns whether it succeeded.
Syntax
delfile(path: string) -> boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | A path inside the Yuari workspace. |
Returns
| Type | Description |
|---|---|
boolean | Whether it succeeded |
Description
delfile is part of the File system library. File functions are sandboxed to the executor workspace; paths outside it are rejected.
The operation is performed immediately using the arguments supplied at the call site.
Example
delfile("configs/aim.json")
Notes
- Paths are sandboxed to the executor workspace.