Below is a quick and easy way to recursively delete all files and folders in a given path using PHP.

[code lang=”php”]
[/code]