deleteSipRule method
Deletes a SIP rule. You must disable a SIP rule before you can delete it.
May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ConflictException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter sipRuleId
:
The SIP rule ID.
Implementation
Future<void> deleteSipRule({
required String sipRuleId,
}) async {
ArgumentError.checkNotNull(sipRuleId, 'sipRuleId');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/sip-rules/${Uri.encodeComponent(sipRuleId)}',
exceptionFnMap: _exceptionFns,
);
}