delfolder
Deletes a folder and all of its contents.
function delfolder(path: string): ()Synopsis
How it works
Removes a directory and all its contents from the workspace folder. Internally performs a recursive deletion: enumerates all files via
FindFirstFileA/FindNextFileA, deletes each file with DeleteFileA, then removes empty directories with RemoveDirectoryA. Path is sandboxed to the workspace.Usage
Clean up old session
if isfolder("session_cache") then
delfolder("session_cache")
endParameters
path string Path to the folder to delete.