deregisterUser
Deregistration is the process of removing a user (profile) from the device and server. See Deregister user for more details.
deregisterUser(profileId: string): Promise<void>
| Property | Type | Description |
|---|---|---|
| profileId | string | The profile that you want to deregister |
Example
OneWelcomeSdk.deregisterUser(profileId)
.then(() => console.log('Deregister succeed!'))
.catch(error => console.error('Deregister failed: ', error.message))