---
title: "Delete positions by employee identifier"
method: DELETE
path: "/os/v1/positions/by-employee"
tags: ["Position", "Position"]
---

# Delete positions by employee identifier

`DELETE /os/v1/positions/by-employee`

Deletes all positions associated with an employee identified by email or taxpayerRegistry (CPF).

**Business Rules:**

• Position cannot be deleted if it has direct descendants

• Unlike the regular delete, this endpoint does NOT validate if position has an employee

## Request body

- object
  - `identifier` string, required — Employee email or taxpayerRegistry (CPF)

## Response `204`

Positions 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/revisions/3f26defa2a42/schema)
