---
title: "Remove a User's External Identity"
method: DELETE
path: "/users/{user_id}/settings/identities/{identity_id}"
tags: ["Users"]
---

# Remove a User's External Identity

`DELETE /users/{user_id}/settings/identities/{identity_id}`

Deletes (removes) an external identity from the user's account.
Only the authenticated user can delete their own external identities.
#### Returns
Returns a `204 No Content` response if the external identity 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) to understand why this request may have failed.

## Path parameters

- `user_id` string, required
- `identity_id` string, required

## Response `204`

External identity successfully removed.

## Other responses

- `403` — Permission denied. You do not have permission to remove external identities for this user.
- `404` — External identity not found. No identity with the given ID exists for this user.

---

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