---
title: "Delete Environment"
method: DELETE
path: "/v1/accounts/{account_id}/environments/{environment_id}"
tags: ["Environments"]
---

# Delete Environment

`DELETE /v1/accounts/{account_id}/environments/{environment_id}`

## Request

- Base URL: `https://api.rivery.io`
- URL: `https://api.rivery.io/v1/accounts/{account_id}/environments/{environment_id}`
- Auth: HTTP bearer

**Authorization scope:** `environment:delete` 
 
 **Delete Environment**

## Path parameters

- `account_id` string, required
- `environment_id` string, required

## Response `200`

Successful Response

- OperationResponse: Operation properties to return.
  - `operation_id` string, required: The ID of the operation
  - `operation_type` string, required: The type of the operation
  - `run_id` string, required: The run id of the operation
  - `last_update_date` string, date-time, required: The date time in UTC timezone of the last update
  - `status` 'W' | 'E' | 'R' | 'D', required: The status of the pull request that we use in the back, and expose in the API
  - `result` string, nullable: The result of the operation
  - `error_message` string, nullable: The error message of the operation

## Other responses

- `422`: Validation Error

## Changes

> 662 revisions in range; 2 not diffed.

- **2026-10-24** `00b90942c8d6`: 1 info
  - endpoint added
- **2026-10-24** `0a8241f415c4`: 1 breaking
  - api path removed without deprecation
- **2026-08-06** `ddd6b1c27983`: 2 info
  - api tag `Environments` added
  - api tag `Beta Endpoints` removed

[Operation history](https://skmtc.dev/rivery/apis/boomi-data-integration-api/changes/v1/accounts/:account_id/environments/:environment_id/delete.md)

---

[API](https://skmtc.dev/rivery/apis/boomi-data-integration-api.md) - [All operations](https://skmtc.dev/rivery/apis/boomi-data-integration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rivery/apis/boomi-data-integration-api/revisions/f81937472cec?raw)
