delete<T extends RealmObjectBase> method
void
delete<T extends RealmObjectBase>(
- T object
Deletes a RealmObject
from this Realm
.
Implementation
void delete<T extends RealmObjectBase>(T object) {
if (!object.isManaged) {
throw RealmError('Cannot delete an unmanaged object');
}
_ensureManagedByThis(object, 'delete object from Realm');
realmCore.deleteRealmObject(object);
}