deleteMFAPhoneNumber
abstract suspend fun deleteMFAPhoneNumber(memberId: String): OrganizationsAdminMemberDeleteMFAPhoneNumberResponse
Removes the MFA phone number from the specified member's account. Calls the DELETE /sdk/v1/b2b/organizations/members/mfa_phone_numbers/{member_id} endpoint. Requires an active session and appropriate RBAC permissions.
Kotlin:
StytchB2B.members.admin.deleteMFAPhoneNumber("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")Content copied to clipboard
iOS:
let response = try await StytchB2B.members.admin.deleteMFAPhoneNumber("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")Content copied to clipboard
React Native:
StytchB2B.members.admin.deleteMFAPhoneNumber("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")Content copied to clipboard
Return
OrganizationsAdminMemberDeleteMFAPhoneNumberResponse containing the updated member object.
Parameters
memberId
The unique ID of the member whose MFA phone number to remove.
Throws
StytchError
if the request fails or the caller lacks permission.
if the coroutine is cancelled.