Skip to main content

Dissociate Profiles

Client requirements

Dissociate profiles from the current device

trustfactorClient.dissociateProfiles([<TFApplicationProfile.RawIdentifier>]) { result, correlationId in
switch result {
case .success(let dissociationResult):
// Result contains two lists.
// One with profiles that were removed and another with profiles that failed to be removed.

case .failure(let error):
// handle errors
}
}

Dissociate profiles from other devices

Note: If the current device public key is passed it will have the same effect as calling the previous API.

trustfactorClient.dissociateProfiles([<TFApplicationProfile.RawIdentifier>], from: <TFApplicationProfileDevice.KeyIdentifier>) { result, correlationId in
switch result {
case .success(let dissociationResult):
// Result contains two lists.
// One with profiles that were removed and another with profiles that failed to be removed.

case .failure(let error):
// handle errors
}
}