delete

inline fun <T : RealmModel> Realm.delete()

Deletes all objects of the specified class from the Realm.

Parameters

T

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

Throws

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