delete
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()Content copied to clipboard
iOS:
let response = try await StytchB2B.organizations.delete()Content copied to clipboard
React Native:
StytchB2B.organizations.delete()Content copied to clipboard
Return
B2BOrganizationsDeleteResponse confirming the organization was deleted.
Throws
StytchError
if the request fails or the caller lacks permission.
if the coroutine is cancelled.