Delete stack
Changed onPermanently deletes the stack directory and all its files. Requires stack:delete permission. With pruneVolumes=true the stack's volumes are removed too, unless the stack declares a recovery repository volume (or its volumes could not be read), in which case the delete is refused with 423 and nothing is stopped or removed.
Request
- Base URLhttps://localhost:1852
- URLhttps://localhost:1852/api/stacks/{stackName}
- AuthHTTP bearer
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, also removes the stack's compose volumes. Refused with 423 when the stack declares a recovery repository volume.
Headers
Target a specific node by ID. If omitted, the default node is used. Can also be passed as ?nodeId= query parameter.
Response
Stack deleted.
Changes
- info
added the new optional
queryrequest parameterpruneVolumes - info
added the non-success response with the status
- info
- info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status - info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status
- info