Delete a user
Log in to add to favouritesDeletes a user by its id.
delete(userId: string): Promise<void>
Remarks
Authenticated System Administrator accounts are permitted to delete any other user account.
Authenticated Standard User accounts are permitted to delete their own account.
let userId = "4b262379-5bbe-421e-a429-f6e2ab5a849b";
client.security.users.delete(userId)
.then(result => {
console.log('API call was successful');
})
.catch(error => {
console.log('API call error: ', error);
});