---
title: "Deletes an environment"
method: DELETE
path: "/api/environment/{id}"
tags: ["Environment"]
---

# Deletes an environment

`DELETE /api/environment/{id}`

## Path parameters

- `id` string, required

## Response `200`

If deletion is successfully environment.

- ResponseEntityBooleanView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` boolean
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `403` — If the user is not an admin or access to the configuration layout or does have permission, it will return a 403.
- `404` — If the environment does not exits

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
