You are here

public function Users::delete in Auth0 Single Sign On 8.2

Delete a User by ID. Required scope: "delete:users"

@link https://auth0.com/docs/api/management/v2#!/Users/delete_users_by_id

Parameters

string $user_id User ID to delete.:

Return value

mixed|string

Throws

\Exception Thrown by the HTTP client when there is a problem with the API call.

File

vendor/auth0/auth0-php/src/API/Management/Users.php, line 164

Class

Users
Class Users. Handles requests to the Users endpoint of the v2 Management API.

Namespace

Auth0\SDK\API\Management

Code

public function delete($user_id) {
  return $this->apiClient
    ->method('delete')
    ->addPath('users', $user_id)
    ->call();
}