title: Mongoose Model.remove(callback) doesn't remove anything from my collection
body: <p>I'm trying to remove all content from my Mongoose database but nothing seems to work.</p>
  
  <p>I have tried</p>
  
  <pre><code># CoffeeScript
  MyModel.find().remove((err) -&gt; console.log('purge callback'))
  
  # JavaScript
  MyModel.find().remove(function() { console.log('purge callback') })
  </code></pre>
  
  <p>And </p>
  
  <pre><code># CoffeeScript
  MyModel.find().remove({}, (err) -&gt; console.log('purge callback'))
  
  # JavaScript
  MyModel.find().remove({}, function() { console.log('purge callback') })
  </code></pre>
  
  <p>Even removing the <code>.find()</code> step or adding a <code>.exec()</code> my callback never shows and my data are still here.</p>
  
  <p>I am pretty sure that my model and connection are ok:</p>
  
  <ul>
  <li>I can see the connections in Mongo's log</li>
  <li>I can add documents by manipulating the same model elsewhere</li>
  </ul>
  
  <p>Related: <a href="https://stackoverflow.com/questions/5809788/how-do-i-remove-documents-using-node-js-mongoose">How do I remove documents using Node.js Mongoose?</a></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>My problem was caused by a syntax mistake that wasn't displayed. The selected answer does work and so does the above code. Moderators are welcome to remove my question if it seems necessary.</p>