---
title: "Delete a legal entity"
method: DELETE
path: "/legal-entities/{id}"
tags: ["legalEntities"]
---

# Delete a legal entity

`DELETE /legal-entities/{id}`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/legal-entities/{id}`
- Auth: HTTP bearer

Archives the legal entity identified by id, marking it as inactive without permanently removing it; the response includes the archived_at timestamp.

 **Token scopes**: `legal-entity:read`, `legal-entity:write`

## Path parameters

- `id` string, required

## Response `200`

Successfully archived the legal entity.

- LegalEntitiesDeleteLegalEntityResponse200
  - `archived_at` string, date-time: The timestamp when the legal entity was archived.

## Other responses

- `400`: Invalid request parameters.
- `401`: Operation failed.
- `403`: Permission denied.
- `404`: Operation failed.
- `500`: Operation failed.

---

[API](https://skmtc.dev/deel/apis/endpoints.md) - [All operations](https://skmtc.dev/deel/apis/endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/endpoints/revisions/0c7142fd9f93?raw)
