---
title: "Delete environment"
method: DELETE
path: "/api/projects/{projectId}/environments/{environmentId}"
tags: ["Environment"]
---

# Delete environment

`DELETE /api/projects/{projectId}/environments/{environmentId}`

Soft deletes an environment from the project.

## Path parameters

- `environmentId` string, uuid, required
- `projectId` string, uuid, required

## Response `200`

The ID of the deleted environment

- object — The ID of the deleted environment
  - `id` string, uuid, required — ID of the deleted environment

---

[API](https://skmtc.dev/gorules/apis/gorules-agent-api.md) · [All operations](https://skmtc.dev/gorules/apis/gorules-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gorules/gorules-agent-api/revisions/52c0773fcd80/schema)
