---
title: "Undeploy environment"
method: POST
path: "/api/projects/{projectId}/environments/{environmentId}/undeploy"
tags: ["Environment"]
---

# Undeploy environment

`POST /api/projects/{projectId}/environments/{environmentId}/undeploy`

Removes the currently deployed release from an environment, optionally creating a change request if approval is required.

## Path parameters

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

## Response `200`

Environment successfully undeployed or change request created

---

[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)
