---
title: "Delete Internal Deployment"
method: DELETE
path: "/internal/deployments/{deployment_id}"
tags: ["internal"]
---

# Delete Internal Deployment

`DELETE /internal/deployments/{deployment_id}`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/internal/deployments/{deployment_id}`
- Auth: none declared. Required headers: `x-service-token`

Finalize deletion: remove the deployment DB record. This is a SERVICE-ONLY
operation the worker calls AFTER it has torn the deployment down (git removal
-> ArgoCD prune). It is distinct from the user-facing public DELETE, which
only *initiates* deletion (sets DELETING + enqueues this teardown).

## Path parameters

- `deployment_id` string, uuid, required

## Headers

- `x-service-token` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
