deleteObject method
DeleteObject
Delete an object. You must set the objectID attribute to indicate the object to delete. Equivalent to Delete an object.
Implementation
void deleteObject(String objectID) {
if (!_committed) {
_actions.add(AlgoliaBatchRequest(action: 'deleteObject', body: {
'objectID': objectID,
}));
} else {
throw StateError(
'This batch has been committed and can no longer be changed.');
}
}