---
title: "Delete Environment"
method: DELETE
path: "/v2/projects/{proj_id}/envs/{env_id}"
tags: ["Environments"]
---

# Delete Environment

`DELETE /v2/projects/{proj_id}/envs/{env_id}`

Deletes an environment and all its related data.

## Path parameters

- `proj_id` string, required — Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `env_id` string, required — Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

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