title: litedb database file size keeps increasing although deleting data
body: <p>There are two applications,</p>
  
  <ul>
  <li>one console application keeps writing data to a litedb database continuously.</li>
  <li>The other console application reads data and deletes whatever was read</li>
  </ul>
  
  <pre><code>var liteCollection = _liteDb.GetCollection&lt;SomeClass&gt;("ColName");
  
  var data = liteCollection.FindAll().ToList();
  
  //prepare list if id's and delete
  var ids = data .Select(l =&gt; l.Id).ToList();
  var count = liteCollection.DeleteMany(rp =&gt; ids.Contains(rp.Id));
  </code></pre>
  
  <p>Everything looks great, but the database file size keeps growing and is <em>not</em> reducing at all. How to shrink the database?</p>
  
  <p>I get to know some <code>shrink</code> command, but how to use it? A <code>liteDb.Shrink()</code> option I am not seeing and is not available.</p>
  
  <ul>
  <li>Is there any API available to shrink the database and how to use it?</li>
  <li>The above read and delete code I am running in loops which call every 5 minutes, can I use Shrink as well right after delete?</li>
  <li>Is my predicate right for <code>DeleteMany</code> or is there another way to do this as well?</li>
  </ul>