PHP

Removing Users

LAST EDIT Jan 26 2021

The delete endpoint removes a user by their ID.

1
client.user('123').delete();
1
client.users.delete("123")
1
client.users.delete("123")
1
$client->users()->delete('42');
1
client.user("123").delete().join();
1
err := client.Users().Delete("123")
1
client.delete(userId: "123") { result in /* ... */ }
1
await client.Users.Delete("123")
When you delete a user it will be converted to a missing reference and throw an error when enriching.