deleteDomain()
Deletes a satellite domain for the instance. It is currently not possible to delete the instance's primary domain. Returns a DeletedObject
.
function deleteDomain(id: string): Promise<DeletedObject>
- Name
id
- Type
string
- Description
The ID of the domain that will be deleted. Must be a satellite domain.
const id = 'test_123'
const response = await clerkClient.users.deleteDomain(id)
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