title: Deleting directories in bash
body: <p>This is a simple command: <code>rm -rf dir</code> But i have an interesting problem to solve. My bash script calls <code>composer install</code> on a composer script, this then makes <code>vendor/app-name/</code> in the directory the <code>composer install</code> was run in. which is fine, the problem is I am now doing something like:</p>
  
  <pre><code>cp -R /vendor/ . 
  # I believe this is correct for copying everything 
  # out out of vendor and into root
  </code></pre>
  
  <p>to copy everything from vendor. Ok that's define, but there could be 300 app-name folders in there (obviously all with different names other then app-name), each might have a <code>.gitignore</code>, <code>.git</code> directory or a documentation Directory. I want to say:</p>
  
  <p><em>Walk through each of the folders, looking for .git/, .gitignore or Documentation and delete them if found.</em></p>
  
  <p>How can I do this in bash?</p>
  
  <p><strong>note:</strong> All the packages that are being pulled down are pulled down via git, how ever the user may choose to add additional ones pulled down from composer package land. the same concepts should still apply.</p>