Tear down stack
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
Stack directory name. Must match ^[a-zA-Z0-9_-]+$ (alphanumeric characters, hyphens, and underscores only). Returns 400 Invalid stack name if the name contains path separators, dots, spaces, or other special characters.
Query parameters
When true, runs docker compose down --volumes. Only honored when the target node advertises stack-down-remove-volumes.
Headers
Target a specific node by ID. If omitted, the default node is used. Can also be passed as ?nodeId= query parameter.
Response
Command started.
Example response
{
"status": "Command started"
}Changes
Changed in 4 of the 36 revisions of this API.126
- ○
added the new optional
queryrequest parameterremoveVolumesnew-optional-request-parameter
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
- ○
removed the
ADMIRAL_REQUIREDenum value from thecoderesponse property for the response status403response-property-enum-value-removed
- ○
removed the
ADMIRAL_REQUIREDenum value from thecoderesponse property for the response status500response-property-enum-value-removed
- ○
- ●
added the new
PAID_REQUIREDenum value to thecoderesponse property for the response status403response-property-enum-value-added
- ●
added the new
PAID_REQUIREDenum value to thecoderesponse property for the response status500response-property-enum-value-added
- ○
removed the
PRO_REQUIREDenum value from thecoderesponse property for the response status403response-property-enum-value-removed
- ○
removed the
PRO_REQUIREDenum value from thecoderesponse property for the response status500response-property-enum-value-removed
- ●
- ▲
added the pattern
^[a-zA-Z0-9_-]+$to thepathrequest parameterstackNamerequest-parameter-pattern-added
- ▲