deleteUser
.
The script is only used in a legacy authentication scenario, and is required if you want to delete a user from Auth0 and your external database in the same operation.
deleteUser
function should:
null
value if the deletion succeeded.deleteUser
function accepts two parameters and returns a callback
function:
Parameter | Type | Description |
---|---|---|
id | String | User’s identity user_id . Does not start with auth0 . |
callback | Function | Used to pass error or profile data through the pipeline. |
deleteUser
function. For language-specific examples, read Language-specific script examples.
callback
function accepts one parameter and returns a function.
Parameter | Type | Required | Description |
---|---|---|---|
error | Object | Required | Contains error data. |
callback
function, and pass a null
value for the error
parameter.
callback
function, and pass relevant error information to the error
parameter.