B2B Saas Authentication

/

Mobile SDKs

/

React Native SDK reference

/

SCIM

/

Delete SCIM Connection

Delete SCIM Connection

The Delete SCIM Connection method wraps the Delete SCIM Connection API endpoint. The organization_id will be automatically inferred from the logged-in Member's session. This method cannot be used to delete SCIM connections in other Organizations.


Method parameters


connection_id*string

Response fields


request_idstring

status_codeint

connection_idstring
import { Text, TouchableOpacity, View } from 'react-native';
import { useStytchB2BClient } from '@stytch/react-native/b2b';

export const DeleteSCIMConnection = () => {
  const stytch = useStytchB2BClient();

  const deleteSCIMConnection = () => {
    stytch.scim.deleteConnection('scim-connection-test-cdd5415a-c470-42be-8369-5c90cf7762dc');
  };

  return (
    <View>
      <TouchableOpacity onPress={deleteSCIMConnection}>
        <Text>Delete SCIM Connection</Text>
      </TouchableOpacity>
    </View>
  );
};

RESPONSE

200
{
	"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
	"status_code": 200,
    "connection_id": "scim-connection-test-cdd5415a-c470-42be-8369-5c90cf7762dc",
}