curl --request DELETE \
--url https://api.royalti.io/user/{id}/email/{email} \
--header 'Authorization: Bearer <token>'{
"message": "User Email removed successfully"
}/user//email/
curl --request DELETE \
--url https://api.royalti.io/user/{id}/email/{email} \
--header 'Authorization: Bearer <token>'{
"message": "User Email removed successfully"
}/user/{id}/email/{email} endpoint is used to remove a user from the system based on their user ID and email address.
Method:DELETE
Path Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the user. |
| string | The email address of the user to remove. |
const response = await fetch('https://api.royalti.io/user/example-id/email/example-id', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
The unique identifier of the user
"f4b4e2f8-fe5e-4076-9e09-3424ff7f185f"
The email address of the user to remove
Success