>Do you know if there's any Win32API equivalent of the DOS DELTREE command?
Depends on the API call - RemoveDirectory() expects to work on an empty folder and does not recurse, and DeleteFile() won't touch folders or recurse. SHFileOperation can recursively delete if requested, but requires a structure and some understanding of the API call. Some of it's features and flags are version-specific, and are tied to the Shell revision. Some of the name structures can be challenging to work with, but for most applications are not needed.