---
title: "Delete compute environment"
method: DELETE
path: "/compute/v1/environments/{name}"
tags: ["Compute"]
---

# Delete compute environment

`DELETE /compute/v1/environments/{name}`

Permanently delete a compute environment and all its associated resources. This will stop all running deployments and clean up related configurations. The default environment cannot be deleted if other environments exist.

## Path parameters

- `name` string, required

## Response `200`

Environment deleted successfully

- object
  - `success` boolean, required
  - `message` string, required

## Other responses

- `400` — Bad request - Environment name missing or cannot delete default environment
- `401` — Unauthorized - Invalid API key
- `404` — Environment not found

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
