delfile
Deletes a file from Workspace.
Syntax
Signature
delfile(Path: string) -> ()Aliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Path | string | Path relative to the sandboxed Workspace. |
Returns
| Type | Description |
|---|---|
() | None. |
Notes
Invalid paths and deletion failures raise a Luau error.
Example
Luau
delfile("Example.txt")