Delete a user identity

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

Delete an identity (social identity) from the user, a logto-verification-id in header is required for checking sensitive permissions.

Path parameters

  • target string Required

Responses

  • 204

    The identity was deleted successfully.

  • 400

    The verification record is invalid.

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    The identity does not exist.

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