---
title: "Delete a specified environment for app"
method: DELETE
path: "/apps/{appId}/environments/{environmentId}"
tags: ["apps"]
---

# Delete a specified environment for app

`DELETE /apps/{appId}/environments/{environmentId}`

## Request

- Base URL: `https://pmp-demo.privateplatform.mendix.com/deployservice/v1`
- URL: `https://pmp-demo.privateplatform.mendix.com/deployservice/v1/apps/{appId}/environments/{environmentId}`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Delete a specified environment for specified app.

## Path parameters

- `appId` string, required
- `environmentId` string, required

## Response `204`

Delete environment successfully, no content in response body

## Other responses

- `400`: Invalid input parameter or request body
- `401`: Authentication information is missing or invalid
- `403`: User has no permission for this operation
- `404`: Resource not found

---

[API](https://skmtc.dev/mendix/apis/deploy-service-v1.md) - [All operations](https://skmtc.dev/mendix/apis/deploy-service-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/mendix/apis/deploy-service-v1/revisions/375e6f7be385?raw)
