Skip to main content

deleteDomain(),

Deprecated

This method is deprecated. Use the delete() method instead.

Deletes a domain for the instance. You can't delete the active domain. Returns a DeletedObject.

function deleteDomain(domainId: string): Promise<DeletedObject>
  • Name
    domainId
    Type
    string
    Description

    The ID of the domain to delete.

Note

Using clerkClient varies based on the SDK you're using. Refer to the overview for usage details, including guidance on how to access the userId and other properties.

const response = await clerkClient.domains.deleteDomain('domain_123')

Feedback

What did you think of this content?

Last updated on