delete

abstract suspend fun delete(memberId: String): OrganizationsAdminMemberDeleteResponse

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")

iOS:

let response = try await StytchB2B.members.admin.delete("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")

React Native:

StytchB2B.members.admin.delete("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")

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.