delfolder

Deletes a Workspace directory and its contents.

Syntax

Signature
delfolder(Path: string) -> ()

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
PathstringPath relative to the sandboxed Workspace.

Returns

TypeDescription
()None.

Notes

The Workspace root cannot be deleted. Invalid paths and deletion failures raise a Luau error.

Example

Luau
makefolder("ExampleFolder")
delfolder("ExampleFolder")