Clear all stacks from a device
DELETE/api/v1/devices/{deviceId}/stacks/deployments
Overview: This operation completely removes all deployed stacks from a device, effectively returning it to a clean, initial state with no deployed containers.
• Complete Removal: All stacks are removed from the device in one operation.
• Clean Slate: The device reverts to its initial state, having no deployed stacks.
• Process: The system sends an empty stacks configuration to the device. The device stops all containers afterwards.
• Deployment records: All deployment records for the device are removed.
• Irreversible: Due to the nature of the reset, all stacks must be redeployed individually after this operation is complete.
Request
Responses
- 204
- 404
- 500
All deployment records for the device were removed and the device's desired stack configuration was updated to contain no stacks. The device stops the containers afterwards. This response does not mean they have already stopped, and the API does not report when they stop.
Not Found. The device has never had a stack configuration. A device that has one but no deployed stacks returns 204.
Internal Server Error