delfolder
Deletes a Workspace directory and its contents.
Syntax
Signature
delfolder(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
The Workspace root cannot be deleted. Invalid paths and deletion failures raise a Luau error.
Example
Luau
makefolder("ExampleFolder")
delfolder("ExampleFolder")