---
title: "Delete area by external code"
method: DELETE
path: "/os/v1/areas/external/{externalCode}"
tags: ["Area", "Area"]
---

# Delete area by external code

`DELETE /os/v1/areas/external/{externalCode}`

Deletes an area by its external code.

An area cannot be deleted if it has active relationships with position(s)

## Path parameters

- `externalCode` string, required

## Response `204`

Area successfully deleted

## Other responses

- `401` — Unauthorized - Invalid or missing token
- `404` — Not Found - Area not found
- `409` — Conflict - Area has active position relationships
- `500` — Internal Server Error - Unexpected failure

---

[API](https://skmtc.net/gupy/apis/gupy-public-api.md) · [All operations](https://skmtc.net/gupy/apis/gupy-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gupy/gupy-public-api/versions/3f26defa2a42/schema)
