Remove an organization
An application owner removes an obsolete tenant from backend administration.
Clerk · Module
Deletes a specified Clerk Organization by ID and returns the deleted Organization resource.
Call the backend Organizations API with an organization ID. The asynchronous operation permanently deletes that Organization and resolves with the deleted Organization object.
function deleteOrganization(organizationId: string): Promise<Organization>| Name | Type | Description |
|---|---|---|
organizationId | string | The ID of the Organization to delete. |
Promise<Organization> resolving to the deleted Organization.
const organizationId = 'org_123'
const response = await clerkClient.organizations.deleteOrganization(organizationId)Pass the organization ID to the backend Clerk client method and await the deleted Organization in the response.
An application owner removes an obsolete tenant from backend administration.
A lifecycle workflow handles tenant offboarding after account closure.
It accepts one string, organizationId, and returns a Promise<Organization>. The ID identifies the Organization that Clerk should delete.
Follow-up: What HTTP operation does it represent? It wraps the BAPI DELETE /organizations/{organization_id} endpoint.
The method deletes the specified Organization through clerkClient.organizations.deleteOrganization(organizationId). The returned promise resolves to the deleted Organization.
Follow-up: How would you identify the target? Supply its Clerk Organization ID, such as org_123, rather than a display name.
It is a backend SDK operation, and the documentation points to the SDK-specific overview for how clerkClient is accessed. The call therefore belongs in code using the appropriate Clerk backend SDK setup.
Follow-up: What should be checked before shipping? Confirm the selected backend SDK's client initialization and authentication configuration.
OrganizationclerkClient.organizationsBAPI endpoint DELETE/organizations/{organization_id}