Delete directory with files in it?
I wonder, what’s the easiest way to delete a directory with all its files in it? I’m using rmdir(PATH . “https://stackoverflow.com/” . $value); to delete a folder, however, if there are files inside of it, I simply can’t delete it. 34 Answers 34 There are at least two options available nowadays. Before deleting the folder, … Read more