Skip to main content
DELETE
/
user
/
{id}
/
email
/
{email}
Remove User Email
curl --request DELETE \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/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

Example:

"emma221999@gmail.com"

Response

Success

message
string