---
title: "Delete a category"
method: DELETE
path: "/api/category/{id}"
tags: ["Category"]
---

# Delete a category

`DELETE /api/category/{id}`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/category/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/category/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Soft deletes a category by its ID

## Path parameters

- `id` integer, required

## Response `204`

Category deleted successfully

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Category not found
- `500`: Server error

---

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