---
title: "POST /swarm/leave"
method: POST
path: "/swarm/leave"
---

# POST /swarm/leave

`POST /swarm/leave`

Leave a swarm

## Query parameters

- `force` boolean

## Response `204`

There is no content to send for this request, but the headers may be useful.

## Changes

- **2026-02-14** `31f80d10d31a` — 2 breaking, 4 info
  - for the `query` request parameter `force`, default value `false` was removed
  - removed the success response with the status `200`
  - api tag `Swarm` removed
  - removed the non-success response with the status `500`
  - …2 more

[Change history](https://skmtc.dev/hexlet/apis/docker-engine-api/changes/swarm/leave/post.md)

---

[API](https://skmtc.dev/hexlet/apis/docker-engine-api.md) · [All operations](https://skmtc.dev/hexlet/apis/docker-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hexlet/docker-engine-api/revisions/7dbd508c79cf/schema)
