deleteProfile method
Deletes a profile.
Required permissions: rolesanywhere:DeleteProfile.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
Parameter profileId :
The unique identifier of the profile.
Implementation
Future<ProfileDetailResponse> deleteProfile({
required String profileId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/profile/${Uri.encodeComponent(profileId)}',
exceptionFnMap: _exceptionFns,
);
return ProfileDetailResponse.fromJson(response);
}