deleteBrowserProfile method
Deletes a browser profile.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter profileId :
The unique identifier of the browser profile to delete.
Parameter clientToken :
A unique, case-sensitive identifier to ensure idempotency of the request.
Implementation
Future<DeleteBrowserProfileResponse> deleteBrowserProfile({
required String profileId,
String? clientToken,
}) async {
final $query = <String, List<String>>{
if (clientToken != null) 'clientToken': [clientToken],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/browser-profiles/${Uri.encodeComponent(profileId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DeleteBrowserProfileResponse.fromJson(response);
}