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
?>
Really enjoyed this article post.Much thanks again. Keep writing.
I really liked your blog.Really looking forward to read more. Keep writing.
Really appreciate you sharing this post.Thanks Again. Much obliged.
…Visitor recommendations
[…]Wow, wonderful blog layout! How long have you been blogging for?[…]
…Click here for or more Information
[…]you make blogging glance[…]