Code: Select all
OSexecute cmd /c "rmdir /s/q c:\\mydirectorytree"
The lavishscript command "rmdir" won't delete subdirectories.
The only other way I can think of is to write a routine to iterate through all the subdirectories, deleting all the files (one-by-one), and then back up the directories deleting those too (one-by-one).