---
title: "Delete compute environment"
method: DELETE
path: "/compute-envs/{computeEnvId}"
tags: ["compute-envs"]
---

# Delete compute environment

`DELETE /compute-envs/{computeEnvId}`

Deletes the compute environment identified by the given `computeEnvId`. When `force=true`, bypasses active-job checks and SCMS/forge cleanup; only allowed for environments in ERRORED, INVALID, or DELETING status.

## Path parameters

- `computeEnvId` string, required

## Query parameters

- `workspaceId` integer
- `force` boolean

## Response `204`

OK - No content

## Other responses

- `400` — Bad request
- `403` — Operation not allowed
- `409` — Conflicting deletion

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/13316c9fe5ff/schema)
