delete()
Deletes a domain for the instance. The active domain cannot be deleted.
Returns the DeletedObject.
function delete(domainId: string): Promise<DeletedObject>- Name
domainId- Type
string- Description
The ID of the domain to delete.
const response = await clerkClient.domains.delete('domain_123')Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint DELETE/domains/{domain_id}. See the BAPI reference for more information.
Feedback
Last updated on