Skip to main content
Docs

deleteOrganization()

Deletes an . Returns a object.

function deleteOrganization(organizationId: string): Promise<DeletedObject>
  • Name
    organizationId
    Type
    string
    Description

    The ID of the organization to delete.

Note

Importing clerkClient varies based on your framework. Refer to the for usage details, including guidance on .

const organizationId = 'org_123'

const response = await clerkClient.organizations.deleteOrganization(organizationId)

Backend API (BAPI) endpoint

This method in the SDK is a wrapper around the BAPI endpoint DELETE/organizations/{organization_id}. See the BAPI reference for more information.

Feedback

What did you think of this content?

Last updated on