---
title: "Tear down stack"
method: POST
path: "/api/stacks/{stackName}/down"
tags: ["Stacks"]
---

# Tear down stack

`POST /api/stacks/{stackName}/down`

Runs `docker compose down` for the stack, removing containers and networks. The stack definition remains on disk. Requires `stack:deploy` permission. Pass `removeVolumes=true` to also remove compose volumes when the node advertises the `stack-down-remove-volumes` capability.

## Path parameters

- `stackName` string, required

## Query parameters

- `removeVolumes` boolean

## Headers

- `x-node-id` integer

## Response `200`

Command started.

- object
  - `status` string, required

## Other responses

- `400` — Volume removal requested on a node that does not support it.
- `403` — Insufficient permissions or license tier.
- `500` — Internal server error.

---

[API](https://skmtc.net/studio-saelix/apis/sencho-api.md) · [All operations](https://skmtc.net/studio-saelix/apis/sencho-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/studio-saelix/sencho-api/versions/f36f82acae1d/schema)
