deleteIndex method
void
deleteIndex()
DeleteIndex
Delete the index. Equivalent to Delete an index.
Implementation
void deleteIndex() {
if (!_committed) {
_actions.add(AlgoliaBatchRequest(action: 'delete', body: {}));
} else {
throw StateError(
"This batch has been committed and can no longer be changed.");
}
}