---
title: "Delete a user identity"
method: DELETE
path: "/api/my-account/identities/{target}"
tags: ["My account"]
---

# Delete a user identity

`DELETE /api/my-account/identities/{target}`

Delete an identity (social identity) from the user. A logto-verification-id header is required when the user has at least one security verification method: password, primary email, or primary phone. The header can be omitted only when the user has none of these methods. The request is rejected if it would remove the user's last identifier.

## Path parameters

- `target` string, required

## Response `204`

The identity was deleted successfully.

## Other responses

- `400` — The request would remove the user's last identifier.
- `401` — Permission denied, the verification record is invalid.
- `403` — Forbidden
- `404` — The identity does not exist.
- `422` — Unprocessable Content

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
