inline fun <reified T : RealmModel> Realm.delete(): Unit
Deletes all objects of the specified class from the Realm.
T - the class of the object which is to be queried for.
IllegalStateException - if the corresponding Realm is closed or called from an incorrect thread.