deleteBrowser method

Future<DeleteBrowserResponse> deleteBrowser({
  1. required String browserId,
  2. String? clientToken,
})

Deletes a custom browser.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter browserId : The unique identifier of the browser to delete.

Parameter clientToken : A unique, case-sensitive identifier to ensure idempotency of the request.

Implementation

Future<DeleteBrowserResponse> deleteBrowser({
  required String browserId,
  String? clientToken,
}) async {
  final $query = <String, List<String>>{
    if (clientToken != null) 'clientToken': [clientToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/browsers/${Uri.encodeComponent(browserId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return DeleteBrowserResponse.fromJson(response);
}