File Directory Php

   $dir_delete = "/home/fake/dir1";
   
   if (rmdir ($dir_delete)) {
         echo "Directory deleted successfully.", "\n";
   }else {
         echo "Could not delete the directory.", "\n";
   }
?>