delfile Synchronous
Remove one workspace file when it is no longer needed. A missing file is ignored, which makes cleanup safe to repeat.
Luau
delfile(path: string) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | Workspace-relative path of the file to delete. |
Returns
()No values.
Usage notes
This deletes the stored file; it does not move it to a trash folder.
Differences from Volt
Volt documents access through explicitly created workspace symlinks. Kawaii rejects symlinks in workspace paths; all workspace operations remain subject to its path containment checks.
Example
Luau
local path = "temporary-export.txt"
writefile(path, "Disposable example")
delfile(path)
print("Still present:", isfile(path))