---
title: "Delete an environment"
method: DELETE
path: "/environment/{environmentId}"
tags: ["Environment Main Calls"]
---

# Delete an environment

`DELETE /environment/{environmentId}`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/environment/{environmentId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/environment/:environmentId/delete.ts> (a function with typed inputs; its response is checked against the schema)

To delete an environment you must have the admin permission

## Path parameters

- `environmentId` string, uuid, required

## Response `204`

The resource was deleted successfully

## Other responses

- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
