delfolder
Removes a workspace directory and its contents. An ordinary file, a missing directory or a symbolic link used as the requested directory raises an error. This is recursive and destructive. It is not a way to delete the workspace root or paths outside it.
Syntax
delfolder(path: string) -> ()
Also available as
deletefolderdel_folder
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | Workspace-relative directory to remove. |
Description
File operations are confined to the current workspace. Absolute paths and traversal outside it are not accepted. Use a file dialog when the user needs to choose an external file.
Example
makefolder("temporary-example")
writefile("temporary-example/item.txt", "temporary")
delfolder("temporary-example")
These are Game executor contracts. Check build requirements and session lifetimes before using them.
