---
title: "Delete position by external code"
method: DELETE
path: "/os/v1/positions/{externalCode}"
tags: ["Position", "Position"]
---

# Delete position by external code

`DELETE /os/v1/positions/{externalCode}`

Deletes a position.

**Business Rules:**

• Position cannot be deleted if it has direct descendants

• Position cannot be deleted if it has an assigned employee

## Path parameters

- `externalCode` string, required

## Response `204`

Position successfully deleted

## Other responses

- `400` — Bad Request - Invalid input data
- `401` — Unauthorized - Invalid or missing token
- `404` — Not Found - Referenced entity not found
- `409` — Conflict - Resource conflict
- `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)
