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

How to remove files and directories quickly via terminal (bash shell) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 6 years ago. Improve this question From a terminal window: When I use the rm command it can only remove files. When I use the … Read more