deleteDomain method

Future<DeleteDomainResponse> deleteDomain({
  1. required String domainName,
})

Deletes an Amazon OpenSearch Service domain and all of its data. You can't recover a domain after you delete it.

May throw BaseException. May throw InternalException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter domainName : The name of the domain you want to permanently delete.

Implementation

Future<DeleteDomainResponse> deleteDomain({
  required String domainName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/2021-01-01/opensearch/domain/${Uri.encodeComponent(domainName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteDomainResponse.fromJson(response);
}