---
title: "Delete an agency"
method: DELETE
path: "/api/agency/{id}"
tags: ["Agency"]
---

# Delete an agency

`DELETE /api/agency/{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/agency/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/agency/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Soft deletes an agency and cleans up associated data including contacts, social handles, and profile links. Requires delete administration agencies permission

## Path parameters

- `id` integer, required

## Response `204`

Empty on success.

## Other responses

- `401`: Unauthenticated
- `403`: Missing the delete administration agencies permission
- `404`: No agency has this id
- `409`: Another process still holds a lock on the agency; nothing was deleted, retry in a moment
- `503`: The search index did not respond; nothing was deleted, retry
- `504`: The delete was stopped at the statement execution cap; nothing was deleted, retry

## Changes

- **2026-11-10** `cbf1ca5bff8f`: 1 breaking, 6 info
  - removed the success response with the status `200`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - …3 more

[Operation history](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/changes/api/agency/:id/delete.md)

---

[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)
