seawall stack remove
Remove a stack: through its manager, then its networks, ports and routes (severe).
Remove a stack: through its manager, then its networks, ports and routes (severe)
The deployed compose is backed up and each database seawall can dump is dumped and restore-tested first. Its own networks go (never an external or shared one), its expected ports and privileged lines, and its routes in NPM (--keep-routes keeps them). Its volumes only with --volumes. Its folder, dumps and backups stay.
Usage
seawall stack remove [OPTIONS] <STACK>
Changes the host
Without --yes it prints the plan and changes nothing.
Arguments
<STACK>The stack, by Portainer name or directory
Options
--volumesIts named volumes too (after its databases are dumped and restore-tested)
--keep-routesKeep its proxy routes
--yesCarry out the plan (without it, this is a dry run)
--confirm <NAME>The stack's name, to confirm without a terminal
Examples
seawall stack remove trial-app
seawall stack remove trial-app --yes
seawall stack remove trial-app --volumes --yes
seawall stack remove trial-app --keep-routes --yes
Notes
Without --yes it prints the plan and changes nothing; with --yes the stack's name is typed to confirm (or --confirm NAME without a terminal).