title: Delete Realm Manually on Migration
body: <p>Realm Platform: <strong>Mobile Android</strong><br/>
  Realm Version: <strong>3.3.2</strong><br/>
  Encryption: <strong>Yes</strong></p>
  
  <p>I have an production app. I use auto delete realm when migration needed on my apps v0.3.0 until v0.14.0. Because of some reason, on v0.14.2 I must migrate manually. And several user got error because they update from version under v0.14.0 and I only handle migration from v0.14.0 to v0.14.2. I confused if I handle off of version from begining because I must do a lot of migration. So I want to delete realm manually on my Migration if user update my apps from version under v0.14.0. How to do that?</p>
  
  <p>I do like this, but I still got <code>RealmMigrationNeededException</code></p>
  
  <pre><code>@Override
  public void migrate(DynamicRealm realm, long oldVersion, long newVersion) {
      RealmSchema schema = realm.getSchema();
  
  
      if (oldVersion == 0) {
          //update from v0.10.5 / update from v0.13.0
          if (schema.get("User").hasField("blocks") || !schema.get("Contact").hasField("pinned")) {
              realm.deleteAll();
              return;
          }
  
          addField(schema, "Message", "messageDuration", int.class);
          addField(schema, "Message", "starred", boolean.class);
          oldVersion++;
      }
  
      if (oldVersion == 1) {
          if (!schema.contains("PhoneBook")) {
              schema.create("PhoneBook")
                      .addField("phone", String.class)
                      .addPrimaryKey("phone")
                      .addField("name", String.class)
                      .addField("image", String.class);
          }
  
          if (schema.contains("RealmString")) {
              schema.remove("RealmString");
          }
          oldVersion++;
      }
  }
  </code></pre>