kotlin-extensions / io.realm.kotlin / io.realm.Realm / delete

delete

fun <reified T : RealmModel> Realm.delete(): Unit

Deletes all objects of the specified class from the Realm.

Parameters

T - the class of the object which is to be queried for.

Exceptions

IllegalStateException - if the corresponding Realm is closed or called from an incorrect thread.