How-to articles, tricks, and solutions about DELETE-DIRECTORY
How do I recursively delete a directory and its entire contents (files + sub dirs) in PHP?
In PHP, you can use the rmdir() function to remove a directory, and the unlink() function to remove a file.