APICost type

Delete a cost type

DELETE
/public/v1/cost-types/{id}

Soft-delete a cost type. After deletion it is excluded from the list and fetch endpoints and can no longer be applied to new records, but the row itself is retained. Returns 204 on success, or 404 if no cost type with that ID exists in your company — a cost type that was already deleted also reads as 404.

Deleting a cost type does not remove or alter costs already applied from it: those applied cost records snapshot their own amount and quantity, so they remain intact and unchanged. No inventory is affected and nothing is synced to Metrc or BioTrack. Because name uniqueness only considers active, non-deleted cost types, deleting a cost type frees its name to be reused by a new one.

Required permission: costs_permissions_manage_cost_types.

Authorization

Bearer
headerAuthorizationBearer <token>

API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.

Path Parameters

id*string

ID of the cost type to delete.

Response Body

No Content

Example Request
curl -X DELETE 'https://app.distru.com/public/v1/cost-types/00000000-0000-0000-0000-00000000000f'
Example Response
Empty