deleteType method
Deletes a type during a migration. All the data associated with the type, as well as its schema, will be deleted from the Realm.
If you don't call this, the data will not be deleted, even if the type is not present in the new schema.
Returns true
if the table was present in the old Realm and was deleted. Returns false
if it didn't exist.
Implementation
bool deleteType(String className) {
return realmCore.deleteType(newRealm, className);
}