Skip to main content
DELETE
/
user
/
{id}
/
email
/
{email}
Remove User Email
curl --request DELETE \
  --url https://api.royalti.io/user/{id}/email/{email} \
  --header 'Authorization: Bearer <token>'
{
  "message": "User Email removed successfully"
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

/user//email/ Description:
This /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:
ParameterTypeDescription
idstringThe unique identifier of the user.
emailstringThe email address of the user to remove.

Code Examples

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);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

The unique identifier of the user

Example:

"f4b4e2f8-fe5e-4076-9e09-3424ff7f185f"

email
string<email>
required

The email address of the user to remove

Response

Success

message
string