---
title: "Teardown an environment and all its active deployments"
method: DELETE
path: "/projects/{project_id}/environments/{env_id}/teardown"
tags: ["Projects"]
---

# Teardown an environment and all its active deployments

`DELETE /projects/{project_id}/environments/{env_id}/teardown`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/environments/{env_id}/teardown`
- Auth: none declared

## Path parameters

- `project_id` integer, required
- `env_id` integer, required

## Response `204`

Environment torn down successfully

## Other responses

- `404`: Project or environment not found
- `500`: Internal server error

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
