deleteRealmIfMigrationNeeded

fun deleteRealmIfMigrationNeeded(): <ERROR CLASS>

Setting this will change the behavior of how migration exceptions are handled. Instead of throwing an exception the on-disc Realm will be cleared and recreated with the new Realm schema.

WARNING! This will result in loss of data.