title: how to delete folder in laravel with prefix
body: <p>im using laravel 5.4 and i want to delete folder. how can i delete a folder with a prefix using file facade?</p>
  
  <p>for example it is my folder and code : </p>
  
  <pre><code>$folder = public_path().'/images/carimages/something_folder1';
  
  
  File::deleteDirectory($file);
  </code></pre>
  
  <p>and now i want to do this : delete <code>*_folder1</code> (all folders which will ends with <code>_folder1</code> word)</p>
  
  <p>------- Soloution : </p>
  
  <pre><code>$dir = public_path().'/images/carimages/*_folder1';
  $dir = glob($dir);
  $dir = implode(" ",$dir);
  File::deleteDirectory($dir);
  </code></pre>