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

Responses

  • 204

    The identity was deleted successfully.

  • 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

DELETE /api/my-account/identities/{target}
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/my-account/identities/{target}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"