deleteDomainName method
Deletes the DomainName resource.
May throw BadRequestException.
May throw ConflictException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter domainName :
The name of the DomainName resource to be deleted.
Parameter domainNameId :
The identifier for the domain name resource. Supported only for private
custom domain names.
Implementation
Future<void> deleteDomainName({
required String domainName,
String? domainNameId,
}) async {
final $query = <String, List<String>>{
if (domainNameId != null) 'domainNameId': [domainNameId],
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/domainnames/${Uri.encodeComponent(domainName)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}