Yuari
Documentation

delfile

Deletes a file and returns whether it succeeded.

Syntax

delfile(path: string) -> boolean

Parameters

ParameterTypeDescription
pathstringA path inside the Yuari workspace.

Returns

TypeDescription
booleanWhether 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.