title: Clear complete Realm Database
body: <p>I'm playing around with realm (currently 0.85.0) and my application uses the database to store user-specific data such as the contacts of the current user. When the user decides to log out I need to remove every single bit of information about the user and the most obvious, simple and clean thing in my opinion would be to wipe the complete realm. Unfortunately, the Cocoa lib doesn't provide that functionality.</p>
  
  <p>Currently, I'm stuck with the following</p>
  
  <pre><code>RLMRealm *realm = [RLMRealm defaultRealm];
  [realm beginWriteTransaction];
  [realm deleteObjects:[MyRealmClass1 allObjectsInRealm:realm]];
  [realm deleteObjects:[MyRealmClass2 allObjectsInRealm:realm]];
  [realm deleteObjects:[MyRealmClass3 allObjectsInRealm:realm]];
  [realm commitWriteTransaction];
  </code></pre>
  
  <p>any better ideas?</p>
  
  <p>thanks</p>