procedure RemoveDirectory(const Path: string);
Call the RemoveDirectory method to remove a directory. The Path parameter specifies the directory to be removed. This request cannot be used to remove a file.
If the NonBlocking property is set to True, then control is returned at once and you can learn the result of the operation execution by handling the OnSuccess and OnError events.