Developer docs
Remove Method
DELETE
/v1/auth/mfa/methods/{method_id}
const url = 'https://example.com/v1/auth/mfa/methods/example';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/v1/auth/mfa/methods/exampleRemove a passkey or app. Removing the last one switches two-step off, unless a workspace the person belongs to requires it.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”method_id
required
Method Id
string
Responses
Section titled “ Responses ”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}