Deletes one or more specified directories and their contents and (if specified) their subdirectories.
The required folderpath is a folderpath identifying, in each case, the folder to be deleted.
If recursive="yes" is passed, then files and subdirectories contained by the folder (if any) are automatically deleted along with the folder itself.
1. If folderpath is not found on the file system, the operation fails and returns the error message:
In this case, if you have other <Directory> elements for which the folderpath is found, those directories are deleted, and the error message reads:
To test ahead of time whether a directory exists, you can write:
2. If recursive="no" (the default), and the folder contains at least one file or subdirectory, then the operation fails and returns the error message:
In this case, if you have other <Directory> elements, the delete operation fails also for those other elements.