Skip to main content
Browse Documentation

Delete a user

Created by Alex Pop on 04 Aug 2020

Deletes a user by its id.

delete(userId: string): Promise<void>

Remarks

Only a member of the System Administrators group can delete a user resource.

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);        
    });