DeleteDir

This function deletes a directory.

Syntax

Parameters

Remarks

This function will have no effect if Lua sandboxing is enabled.

Example

--Create a folder
local path = "MyDir"
FileSystem:CreateDir(path)

--Delete the new folder
FileSystem:DeleteDir(path)