This PHP function gives you ability to remove a directory and its all content recursively.
<?php
function rrmdir($dir){if(is_dir($dir)){
$objects = scandir($dir);foreach($objects as $object){if($object !="."&& $object !=".."){if(filetype($dir."/".$object)=="dir") rrmdir($dir."/".$object);else unlink($dir."/".$object);}}
reset($objects);
rmdir($dir);}}
rrmdir('directory_path'); // Give your directory path here
?>
I really liked your article.Really thank you! Fantastic.
Very neat post. Great.
Thanks again for the article.Much thanks again. Awesome.
Thanks again for the article post.Thanks Again. Really Great.
Thanks for the blog article. Keep writing.