Yuari
Documentation

delfile

Deletes a workspace file or folder.

Syntax

delfile(path: string) -> nil

Parameters

ParameterTypeDescription
pathstringA path inside the Yuari workspace.

Returns

TypeDescription
nilThis function does not return a value.

Description

delfile is part of the File system library. File APIs are limited to the Yuari workspace under %LOCALAPPDATA%\Yuari\workspace; absolute paths and traversal outside it are rejected.

The operation is performed immediately using the arguments supplied at the call site.

The aliases delfolder(path) resolve to the same implementation.

Example

delfile("configs/a.txt")
delfolder("configs")

Notes

  • Aliases: delfolder(path).
  • All paths are confined to %LOCALAPPDATA%\Yuari\workspace.