In This Program We learn how to delete a folder using c++ it is Easy and Simple Lets Try it.
How to Delete a folder using C++
#include <errno.h> #include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <fstream> using namespace std; int main() { rmdir("D:/myfolder"); //myfolder is the name of the folder return 0; }
it is easy program