delete_category
Permanently delete a category by ID. This is destructive — if the category has linked transactions you must supply replaceWithCategoryId to reassign them first, otherwise the call will fail. Cannot delete a parent category that still has subcategories. Only call when the user explicitly confirms deletion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| categoryId | Yes | ID of the category to delete. | |
| replaceWithCategoryId | No | ID of the category to reassign linked transactions to. Required when the category has transactions. |