---
title: "Delete Sector"
method: DELETE
path: "/api/sectors/{sector_uuid}"
tags: ["sectors"]
---

# Delete Sector

`DELETE /api/sectors/{sector_uuid}`

## Request

- Base URL: `https://api.regdoor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.regdoor.com/api/sectors/{sector_uuid}`
- Auth: HTTP bearer

Soft delete a sector by UUID.

When a sector is deleted, all its subsectors will have their father_sector_uuid
set to NULL (due to ON DELETE SET NULL foreign key constraint).

Args:
    sector_uuid: UUID of the sector to delete

## Path parameters

- `sector_uuid` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `404`: Not found
- `422`: Validation Error

---

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