---
title: "Delete Deployment"
method: DELETE
path: "/v1/_internal_templates/deployment/{deployment_id}"
tags: ["_internal_templates"]
---

# Delete Deployment

`DELETE /v1/_internal_templates/deployment/{deployment_id}`

Delete all entities (blocks, agents, groups) with the specified deployment_id.
Deletion order: blocks -> agents -> groups to maintain referential integrity.

## Path parameters

- `deployment_id` string, required

## Response `200`

Successful Response

- DeleteDeploymentResponse — Response model for delete deployment operation.
  - `deleted_blocks` string[]
  - `deleted_agents` string[]
  - `deleted_groups` string[]
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/yu-code666/apis/letta-api.md) · [All operations](https://skmtc.dev/yu-code666/apis/letta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yu-code666/letta-api/revisions/6cec99480c13/schema)
