---
title: "Delete a tax category"
method: DELETE
path: "/settings/tax-categories/{id}"
tags: ["Admin Settings: Tax Categories"]
---

# Delete a tax category

`DELETE /settings/tax-categories/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/settings/tax-categories/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/settings/tax-categories/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Mirrors monolith TaxCategoryController::destroy — refuses with HTTP 400 if any tax_rates are still attached to the category.

## Path parameters

- `id` string, required

## Response `200`

Tax category deleted.

## Other responses

- `400`: Cannot delete — tax rates still attached.
- `404`: Tax category not found.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
