Passer au contenu principal
DELETE
/
identity-providers
/
{idp_id}
/
domains
/
{domain}
TypeScript
import { MyOrganizationClient } from "github.com/auth0/myorganization-js";

async function main() {
    const client = new MyOrganizationClient({
        token: "<token>",
    });
    await client.organization.identityProviders.domains.delete("idp_id", "domain");
}
main();

Autorisations

Authorization
string
header
requis

The access token received from the authorization server in the OAuth 2.0 flow.

Paramètres de chemin

idp_id
string
requis

Identity provider identifier.

Pattern: ^con_[A-Za-z0-9]{16}$
domain
string
requis

Domain name.

Pattern: ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$

Réponse

The domain was successfully removed from the identity provider.