---
title: "Deleteconnection"
method: DELETE
path: "/v1/b2b/sso/{organization_id}/connections/{connection_id}"
tags: ["Sso"]
---

# Deleteconnection

`DELETE /v1/b2b/sso/{organization_id}/connections/{connection_id}`

## Request

- Base URL: `https://api.stytch.com`
- URL: `https://api.stytch.com/v1/b2b/sso/{organization_id}/connections/{connection_id}`
- Auth: HTTP basic

Delete an existing SSO connection.

## Path parameters

- `organization_id` string, required: The organization ID that the SSO connection belongs to. You may also use the organization_slug or organization_external_id here as a convenience.
- `connection_id` string, required: The ID of the SSO connection. SAML, OIDC, and External connection IDs can be provided.

## Headers

- `X-Stytch-Member-Session` string
- `X-Stytch-Member-SessionJWT` string

## Response `200`

Successful response

- ApiSsoV1DeleteConnectionResponse
  - `request_id` string, required: Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
  - `connection_id` string, required: The `connection_id` that was deleted as part of the delete request.
  - `status_code` integer, required: The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `429`: Too Many Requests
- `500`: Internal server error

## Changes

- **2026-03-07** `110f26a94e5b`: 1 info
  - endpoint added
- **2026-03-06** `9cab20b8eca7`: 1 breaking
  - api path removed without deprecation
- **2026-01-09** `7dfcc14e566c`: 1 breaking
  - removed the request body
- **2025-11-03** `b2acbf387799`: 1 breaking
  - added required request body
- **2025-10-24** `69e827881158`: 1 breaking
  - removed the request body

[Operation history](https://skmtc.dev/stytch/apis/stytch-api/changes/v1/b2b/sso/:organization_id/connections/:connection_id/delete.md)

---

[API](https://skmtc.dev/stytch/apis/stytch-api.md) - [All operations](https://skmtc.dev/stytch/apis/stytch-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stytch/apis/stytch-api/revisions/6d1ff7474803?raw)
