Skip to Content
CLI

argoctl ironic uninstall

Remove Ironic's containers from the management server, and with --purge its database, secrets and images.

Synopsis

sudo argoctl ironic uninstall [--purge] [--json]

Description

Stops and removes the argo-ironic Compose project's containers. Installed nodes keep running: Ironic only manages installation and power, and the operating systems don't depend on it.

With --purge it also deletes Ironic's database, secrets and downloaded images (/etc/argoctl/ironic/ and /var/lib/argoctl/ironic/). Ironic then forgets every node. Installing Ironic again works, but nodes that were already installed can only be brought back under Ironic by reinstalling them (provision --reimage --node <name>).

Docker, mgmt's provisioning SSH key, the cluster and its state are left alone.

Flags

FlagDefault
--purgeAlso delete the database, secrets and images.
--jsonPrint the report as JSON on stdout.

Examples

sudo argoctl ironic uninstall              # containers only; reinstall with `ironic install`
sudo argoctl ironic uninstall --purge      # everything Ironic stores

Output

$ sudo argoctl ironic uninstall
✓ Ironic removed: containers httpd, ironic, mariadb (4s)
  kept: database and images under /var/lib/argoctl/ironic, secrets under /etc/argoctl/ironic (--purge removes them)
  Full log: /var/log/argoctl/20261130T110002Z-ironic-uninstall.log

Exit codes

CodeMeaning
0Removed (or nothing was installed).
1Something couldn't be removed.
2Usage error.

Troubleshooting

SymptomLikely cause and fix
must run as rootsudo argoctl ironic uninstall.
After --purge, provision says a node isn't in Ironic, but ... already answers SSHExpected: Ironic forgot the node. provision --reimage --node <name> reinstalls it under Ironic (wipes its disk). Nodes you don't need to reinstall can be left as they are.

On this page