The DelTree function deletes all the files and subfolders below the specified folder.
Used to remove a folder.
<foldername>, string, name of the folder to be deleted.
ret, optional numeric return value. If the function has successfully deleted the folder, the return value is 0. If the function fails, the return value is a nonzero value (see File Functions Error Codes).
Use RmDir function to delete the folder name itself after having deleted its files and subfolders using DelTree.