Realm file size is too large
<p>I'm trying to integrate Realm into my project and noticed an issue. I've seen other posts on this, but they were a little over a year ago and have been resolved.. </p>

<p>When adding objects to Realm, things are file. But when removing objects, they get removed from the DB, but the file size is still large. If I open the realm file in TextEdit, I can see raw text of old records. Why aren't they getting fully deleted? </p>

<p>Take a look at this screenshot. Zero files in the Realm DB, but the file size is 23 mb. </p>

<p>Thanks. </p>

<p><a href="https://i.stack.imgur.com/w7hBD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w7hBD.png" alt="enter image description here"></a></p>