Delete custom category
Deletes an unused category made through POST /custom_categories. An in-use category stays in the chart. The error lists the kinds of records that use it, such as journal entries, transactions, rules, supporting documents, Stripe or Paddle settings, or a bulk update in progress. A used category can be renamed with PATCH /custom_categories/{id} once sheets mentioning its name are updated. Delete checks committed references and the database rejects foreign-key references. Success removes only the category and its own settings, including its search entry. A bulk update, a queued follow-up, or an Undo that overlaps deletion can fail with its usual category error and leave the books unchanged.
The reason is sent in the query string and stays on record after deletion. The delete and its reason commit together. The same name is available for reuse after deletion, and a repeated delete returns 404 category_not_found. Requires API access and Accounting setup Manage, and the same early-access and write permissions as POST /custom_categories.
Authorizations
Query Parameters
Response
The category was deleted and its reason was saved.