---
title: "Remove a User's Email Address"
method: DELETE
path: "/users/{user_id}/settings/emails/{email_id}/"
tags: ["Users"]
---

# Remove a User's Email Address

`DELETE /users/{user_id}/settings/emails/{email_id}/`

Deletes an email address from the user's account.
- If the email is confirmed and verified, it will be removed. - If the email is unconfirmed, it will be removed from unconfirmed emails. - Cannot delete the primary email address.
#### Returns
Returns a `204 No Content` response if the email was successfully removed.
#### Errors
If the request is unsuccessful, an `errors` key containing information about the failure will be returned. Refer to the [list of error codes](#tag/Errors-and-Error-Codes).

## Path parameters

- `user_id` string, required
- `email_id` string, required

## Response `204`

Email address successfully removed.

## Other responses

- `400` — Bad request. Cannot delete the primary email address.
- `403` — Permission denied.
- `404` — Email address not found.

---

[API](https://skmtc.net/osf/apis/osf-apiv2-documentation.md) · [All operations](https://skmtc.net/osf/apis/osf-apiv2-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/osf/osf-apiv2-documentation/versions/ca701048eb0d/schema)
