Passer au contenu principal
DELETE
/
authentication-methods
/
{authentication_method_id}
TypeScript
import { MyAccountClient } from "github.com/auth0/myaccount-js";

async function main() {
    const client = new MyAccountClient({
        token: "<token>",
    });
    await client.authenticationMethods.delete("authentication_method_id");
}
main();
{
  "type": "<string>",
  "status": 123,
  "title": "<string>",
  "detail": "<string>",
  "validation_errors": [
    {
      "detail": "<string>",
      "field": "<string>",
      "pointer": "<string>",
      "source": "<string>"
    }
  ]
}

Release Lifecycle

Planned

Scopes

Scopes define permissions and access levels for API requests and authentication tokens.
delete:me:authentication_methods

Autorisations

Authorization
string
header
requis

Bearer and DPoP tokens are supported depending on the API configuration

Paramètres de chemin

authentication_method_id
string
requis

Authentication Method ID. This value is part of the Location header returned when creating an authentication method. It should be used as it is, without any modifications.

Réponse

Authentication method successfully deleted