deleteProfile method

Future<DeleteProfileResponse> deleteProfile({
  1. required String domainName,
  2. required String profileId,
})

Deletes the standard customer profile and all data pertaining to the profile.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter domainName : The unique name of the domain.

Parameter profileId : The unique identifier of a customer profile.

Implementation

Future<DeleteProfileResponse> deleteProfile({
  required String domainName,
  required String profileId,
}) async {
  final $payload = <String, dynamic>{
    'ProfileId': profileId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/domains/${Uri.encodeComponent(domainName)}/profiles/delete',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteProfileResponse.fromJson(response);
}