The first arg is the name of the directory. The second arg is "DELETE".
/* Delete a directory named "Dir1" */ err = InetDir("Dir1", "DELETE")
If desired, the directory name can be qualified relative to the current directory. For example, assume your current directory is "Dir1". There is a directory named Dir2 inside of Dir1. To delete a directory named Dir3 inside of Dir2, you call:
/* Delete a directory named "Dir3" (in Dir1/Dir2) */ err = InetDir("Dir2/Dir3", "DELETE")Note: You can't delete a directory if there are any files or sub-directories inside of it. You must first use InetDelete to delete any files in the directory, and then InetDelete any files in any sub-directories, and finally InetDir to delete each sub-directory.