deletePassword
abstract suspend fun deletePassword(memberPasswordId: String): OrganizationsAdminMemberDeletePasswordResponse
Deletes the specified password credential from the organization. Calls the DELETE /sdk/v1/b2b/organizations/members/passwords/{member_password_id} endpoint. Requires an active session and appropriate RBAC permissions.
Kotlin:
StytchB2B.members.admin.deletePassword("member-password-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")Content copied to clipboard
iOS:
let response = try await StytchB2B.members.admin.deletePassword("member-password-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")Content copied to clipboard
React Native:
StytchB2B.members.admin.deletePassword("member-password-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")Content copied to clipboard
Return
OrganizationsAdminMemberDeletePasswordResponse containing the updated member object.
Parameters
memberPasswordId
The unique ID of the password credential to delete.
Throws
StytchError
if the request fails or the caller lacks permission.
if the coroutine is cancelled.