delete

abstract suspend fun delete(): B2BOrganizationsDeleteResponse

Permanently deletes the current member's organization and all associated data. Calls the DELETE /sdk/v1/b2b/organizations/me endpoint. Requires an active session and appropriate RBAC permissions. This action is irreversible.

Kotlin:

StytchB2B.organizations.delete()

iOS:

let response = try await StytchB2B.organizations.delete()

React Native:

StytchB2B.organizations.delete()

Return

B2BOrganizationsDeleteResponse confirming the organization was deleted.

Throws

StytchError

if the request fails or the caller lacks permission.

if the coroutine is cancelled.