deleteMFATOTP

abstract suspend fun deleteMFATOTP(memberId: String): OrganizationsAdminMemberDeleteMFATOTPResponse

Removes the TOTP authenticator registration from the specified member's account. Calls the DELETE /sdk/v1/b2b/organizations/members/totp/{member_id} endpoint. Requires an active session and appropriate RBAC permissions.

Kotlin:

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

iOS:

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

React Native:

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

Return

OrganizationsAdminMemberDeleteMFATOTPResponse containing the updated member object.

Parameters

memberId

The unique ID of the member whose TOTP registration to remove.

Throws

StytchError

if the request fails or the caller lacks permission.

if the coroutine is cancelled.