Delete social identity from user

DELETE /api/users/{userId}/identities/{target}

Delete a social identity from the user.

Path parameters

  • userId string Required

    The unique identifier of the user.

  • target string Required

Responses

DELETE /api/users/{userId}/identities/{target}
curl \
 -X DELETE https://[tenant_id].logto.app/api/users/{userId}/identities/{target}
Response examples (200)
{
  "id": "string",
  "username": "string",
  "primaryEmail": "string",
  "primaryPhone": "string",
  "name": "string",
  "avatar": "string",
  "customData": {},
  "identities": {},
  "lastSignInAt": 42.0,
  "createdAt": 42.0,
  "applicationId": "string",
  "isSuspended": true,
  "hasPassword": true,
  "ssoIdentities": [
    {
      "id": "string",
      "userId": "string",
      "issuer": "string",
      "identityId": "string",
      "detail": {},
      "createdAt": 42.0,
      "ssoConnectorId": "string"
    }
  ]
}