title: mongo: drop collection using the terminal
body: <p>I want to import data into a couple of collections. This is what I do</p>
  
  <pre><code>$&gt; mongoimport -d myDB -c myCollection --file file.json       
  </code></pre>
  
  <p>The problem is that this will only work if the collection is empty, otherwise I get errors like</p>
  
  <pre><code>Mon Mar 31 10:45:52.696 E11000 duplicate key error index:.....
  </code></pre>
  
  <p>Because I want to do this in a bash script I need to clear/drop the collections first. How can I do this in a bash script ?</p>