How to delete a non empty directory in C or C++? Is there any function? rmdir only deletes empty directory. Please provide a way without using any external library.
You can use opendir and readdir to read directory entries and unlink to delete them.