int rmdir(string path)
Returns 0 if the new directory was removed successfully, -1 otherwise.
Removes a directory/folder from the user's filesystem. The folder must already be empty. Remember to use double backslashes in the path.
if (rmdir("c:\\abc\\mynewfolder") == 0) { msgBox(MB_OK, "Successful", "The mynewfolder folder was removed successfully."); } else msgBox(MB_OK | MB_ICONWARNING, "Error", "The folder could not be removed.");