delete
Permanently deletes the specified member from the organization. Calls the DELETE /sdk/v1/b2b/organizations/members/{member_id} endpoint. Requires an active session and appropriate RBAC permissions. This action is irreversible.
Kotlin:
StytchB2B.members.admin.delete("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")Content copied to clipboard
iOS:
let response = try await StytchB2B.members.admin.delete("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")Content copied to clipboard
React Native:
StytchB2B.members.admin.delete("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")Content copied to clipboard
Return
OrganizationsAdminMemberDeleteResponse confirming the member was deleted.
Parameters
memberId
The unique ID of the member to delete.
Throws
StytchError
if the request fails or the caller lacks permission.
if the coroutine is cancelled.