Leave a swarm Run in API Explorer

POST /swarm/leave

Query parameters

  • force boolean

    Force leave swarm, even if this is the last manager or that it will break the cluster.

    Default value is false.

Responses

  • 200

    no error

  • 500 application/json

    server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 503 application/json

    node is not part of a swarm

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

POST /swarm/leave
curl \
 --request POST 'http://api.example.com/v1.44/swarm/leave'
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (503)
{
  "message": "Something went wrong."
}
Response examples (503)
{
  "message": "Something went wrong."
}