Undeploy stacks from a device
DELETE/api/v1/devices/{deviceId}/docker/stacks
Undeploy stacks from a device. With stackConfigId, only that stack is removed and the device's other stacks stay unchanged.
Warning: If stackConfigId is omitted, every stack on the device is undeployed. To clear every stack from a device, use DELETE /api/v1/devices/{deviceId}/stacks/deployments instead.
Request
Responses
- 204
- 404
- 500
The deployment records were removed and the device's desired stack configuration was updated. The device removes the containers afterwards. This response does not mean they have already stopped.
Not Found
Internal Server Error