title: How can I easily delete all objects in a Realm
body: <p>I have the choice of doing a migration, but I would prefer to delete everything in my defaultRealm(). How can I do this easily?</p>
  
  <pre><code>realm.deleteObject(object)
  </code></pre>
  
  <p>is the only function along with .deleteObjects.</p>
  
  <p>I have tried the following code:</p>
  
  <p>Method 1</p>
  
  <pre><code>realm.deleteObjects(RLMObject.objectsInRealm(realm, withPredicate: NSPredicate(value: true)))
  </code></pre>
  
  <p>Method 2</p>
  
  <pre><code>        realm.deleteObjects(Dog.allObjectsInRealm(realm))
          realm.deleteObjects(Person.allObjectsInRealm(realm))
          realm.deleteObjects(Goal.allObjectsInRealm(realm))
          realm.deleteObjects(Goals.allObjectsInRealm(realm))
  </code></pre>
  
  <p>Both fail to prevent the migration exception.</p>