CLI
argoctl delete inference
Remove an inference deployment, its Service and its Secrets, and optionally its cached model weights.
Synopsis
sudo argoctl delete inference <site-file> <name> [flags]Description
Uninstalls the deployment's Helm release: its pods, Service and Secrets (the Hugging Face token and API key, if any). Its GPUs are free as soon as the pods stop. Clients of its endpoint get connection errors from then on.
The model weights cached on the nodes in /var/lib/argoctl/models are kept by default, so deploying the same model again starts quickly. --purge-cache deletes them from every node, unless another deployment uses the same model.
In a terminal it asks for confirmation; in a script, pass --yes.
Flags
| Flag | Default | |
|---|---|---|
<site-file> | Path to the site file. | |
<name> | The deployment to delete (see argoctl get inference). | |
--namespace <ns> | argo-inference | The deployment's namespace. |
--purge-cache | Also delete the model's cached weights from the nodes. | |
--yes | Don't ask for confirmation. | |
--json | Print the report as JSON on stdout. | |
--timeout <d> | 10m | How long to wait for the pods to stop. |
Examples
sudo argoctl delete inference /etc/argoctl/site.yaml qwen3-8b
sudo argoctl delete inference /etc/argoctl/site.yaml llama-70b --purge-cache --yesOutput
$ sudo argoctl delete inference /etc/argoctl/site.yaml qwen3-8b
Delete inference qwen3-8b (Qwen/Qwen3-8B, 4 replicas, endpoint http://172.16.2.21:30080/v1)? [y/N] y
helm uninstall qwen3-8b (namespace argo-inference)
qwen3-8b waiting for 4 pods to stop
qwen3-8b kept the model cache on gpu1, gpu2 (/var/lib/argoctl/models, 16.4 GB each; --purge-cache deletes it)
✓ inference qwen3-8b deleted: 4 GPUs freed (14s)
Full log: /var/log/argoctl/20261130T140211Z-delete-inference.logExit codes
| Code | Meaning |
|---|---|
0 | Deleted, or there was nothing to delete. |
1 | Something couldn't be removed, or confirmation was refused. |
2 | Usage error, or no --yes without a terminal. |
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
no deployment named ... | Check the name and namespace: argoctl get inference <site-file> --all-namespaces. |
Pods stay Terminating until the timeout | A node is down or unreachable; the pods go once it's back. kubectl get nodes shows which. |
not deleting the cache for ...: used by ... | Another deployment serves the same model; the cache stays until the last one is deleted with --purge-cache. |