Syntax
delfolder(path: string)Arguments
| Name | Type | Description |
|---|---|---|
path | string | Workspace-relative path to the file or folder. |
Description
Deletes a folder from the executor workspace.
Call it with 1 parameter(s): path. The argument table explains which values are required and which ones only refine the behavior.
It does not return data. Treat the call as an action and handle errors around the call site when needed.
Example
Delete a workspace folder and its contents after an existence check.
local path = "workspace/examples/temporary"
makefolder(path)
writefile(path .. "/note.txt", "temporary")
if isfolder(path) then
delfolder(path)
end