---
title: "Deactivate an environment"
method: POST
path: "/projects/{projectId}/environments/{environmentId}/deactivate"
tags: ["Environment"]
---

# Deactivate an environment

`POST /projects/{projectId}/environments/{environmentId}/deactivate`

Destroy all services and data running on this environment so that
only the Git branch remains. The environment can be reactivated
later at any time; reactivating an environment will sync data
from the parent environment and redeploy.

**NOTE: ALL DATA IN THIS ENVIRONMENT WILL BE IRREVOCABLY LOST**

## Path parameters

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

## Response `default`

- AcceptedResponse
  - `status` string, required — The status text of the response
  - `code` integer, required — The status code of the response

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
