delete

abstract fun <T : RealmObject> delete(obj: T)

Deletes the object from the underlying Realm.

Throws

if the object is not managed by Realm.