Delete the account's SCIM connection. Stytch goes first here (unlike the SSO delete): while the Stytch connection exists the IdP can still push directory changes, and killing that is the point of the operation. The local row is removed either way so the dashboard reflects reality.
DELETE
/account/scim/connection
const url = 'https://api.siteqwality.com/account/scim/connection';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.siteqwality.com/account/scim/connection \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Connection deleted
Missing or invalid authentication
Caller is not a super admin, or the plan does not include SCIM
No SCIM connection configured
Internal server error