Removing Users

Last Edit: Sep 10 2020

The delete endpoint removes a user by their ID.


client.user('123').delete();
                    

client.users.delete("123")
                    

client.users.delete("123")
                    

$client->users()->delete('42');
                    

client.user("123").delete().join();
                    

err := client.Users().Delete("123")
                    

client.delete(userId: "123") { result in /* ... */ }
                    

await client.Users.Delete("123")
                    
When you delete a user it will be converted to a missing reference and throw an error when enriching.