---
title: "Request teardown of a preview environment"
method: DELETE
path: "/environments/{environmentId}"
tags: ["environments"]
---

# Request teardown of a preview environment

`DELETE /environments/{environmentId}`

## Request

- Base URL: `https://api.letsship.ai/v1`
- URL: `https://api.letsship.ai/v1/environments/{environmentId}`
- Auth: none declared

## Path parameters

- `environmentId` string, required

## Response `200`

Teardown requested

- DestroyEnvironmentResponse
  - `ok` boolean, required
  - `environmentId` string, required

## Other responses

- `403`: Role insufficient
- `404`: Not found

---

[API](https://skmtc.dev/letsship/apis/ship-api.md) · [All operations](https://skmtc.dev/letsship/apis/ship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/letsship/apis/ship-api/revisions/e6eac1bcadd4?raw)
