delfile Synchronous

Remove one workspace file when it is no longer needed. A missing file is ignored, which makes cleanup safe to repeat.

Syntax
Luau
delfile(path: string) -> ()

Parameters

Function parameters
ParameterTypeDescription
pathstringWorkspace-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

Example
Luau
local path = "temporary-export.txt"
writefile(path, "Disposable example")
delfile(path)
print("Still present:", isfile(path))
Kawaii documentation