title: How to delete all documents with safe mode?
body: <p>remove() method without any argument removes all documents inside the collection.</p>
  
  <pre><code>$this-&gt;db-&gt;$collection-&gt;remove();
  </code></pre>
  
  <p>But how to remove all documents with safe mode?</p>
  
  <p>What should be the first argument of remove?
  passing array('safe' => true) as first argument doesn't delete all document because it's treated like a filter with key 'safe'.</p>
  
  <pre><code>$this-&gt;db-&gt;$collection-&gt;remove(array('safe' =&gt; true));
  </code></pre>