Delete a cost type
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.
BearerAuthorizationBearer <token>API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.
id*stringID of the cost type to delete.
No Content
curl -X DELETE 'https://app.distru.com/public/v1/cost-types/00000000-0000-0000-0000-00000000000f'