Directory:removeall() method
Deletes the folder physically on the disk and all contained files and subdirectories.
Return value
Returns true if the operation succeeded or false otherwise (if a file is open in another program for example).Example
-- outputs false, the current working directory could not be deleted !
print(sys.Directory(sys.currentdir):removeall())