Skip to content
Dashboard

Delete a company by external company ID

DELETE/v2/companies/by-company-id/{companyId}

Permanently deletes a company by its external company ID (the companyId from your system).

This will also remove the company from all linked users’ associations.

Path Parameters

  • companyId - The external company ID from your system

Deletion Behavior

When a company is deleted:

  • The company record is permanently removed
  • The company is removed from all linked users’ companyIds and companies arrays

Response

Returns a deletion confirmation object:

  • id - The Featurebase internal ID of the deleted company
  • object - Always “company”
  • deleted - Always true

Example Response

{
  "id": "507f1f77bcf86cd799439011",
  "object": "company",
  "deleted": true
}

Use Case

Use this endpoint when you need to delete a company using your own system’s company identifier, such as when a company is removed from your application.

Version Availability

This endpoint is only available in API version 2026-01-01.nova and newer.

Path ParametersExpand Collapse
companyId: string

The external company ID from your system

minLength1
maxLength255
Header ParametersExpand Collapse
"Featurebase-Version": optional "2026-01-01.nova" or "2025-12-12.clover"
One of the following:
"2026-01-01.nova"
"2025-12-12.clover"
ReturnsExpand Collapse
DeletedCompany object { id, deleted, object }
id: string

Unique identifier of the deleted company

deleted: true

Indicates the resource was deleted

object: "company"

Object type identifier

Delete a company by external company ID

curl https://do.featurebase.app/v2/companies/by-company-id/$COMPANY_ID \
    -X DELETE \
    -H "Authorization: Bearer $FEATUREBASE_API_KEY"
{
  "id": "507f1f77bcf86cd799439011",
  "deleted": true,
  "object": "company"
}
Returns Examples
{
  "id": "507f1f77bcf86cd799439011",
  "deleted": true,
  "object": "company"
}