Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Using TypeScript? Check out our GraphQL SDK for a fully typed client.
Deleting a company unlinks it from all of its customers — the customers themselves are not deleted, they just no longer belong to a company. A company is identified by either its Plain companyId or its companyDomainName. This operation requires the following permissions:
  • company:delete
Mutation
mutation deleteCompany($input: DeleteCompanyInput!) {
  deleteCompany(input: $input) {
    company {
      id
      name
    }
    error {
      message
      type
      code
      fields {
        field
        message
        type
      }
    }
  }
}
Variables
{
  "input": {
    "companyIdentifier": {
      "companyDomainName": "plain.com"
    }
  }
}