Retire an agent
Retiring is three separate, reversible-in-different-ways decisions: stop a tenant serving a version, mark a version as no longer a rollout target, and retire the agent registration itself. None of them deletes evidence.
1. Stop serving a tenant
Section titled “1. Stop serving a tenant”tanomis agent versions support-copilot --by-tenanttanomis agent disable support-copilot --tenants bluewater-bankdisable removes only the named tenants’ enablement and records an audit event. It is idempotent:
a tenant that is not enabled is reported and skipped. The agent and its versions are untouched, so
re-enabling later is a rollout. There is no all; removing every tenant’s enablement must be
explicit.
New sessions for that agent are refused in the tenant. Existing sessions keep their history and can be read; whether an in-flight run completes depends on the runtime’s state at the moment of the change, so disable between runs where you can.
2. Deprecate a version
Section titled “2. Deprecate a version”Once no tenant serves a version and you do not intend to roll it out again, deprecate it. A deprecated version is not a target for new enablement but stays serveable for tenants already on it, which is what makes rollback possible. Deprecation is a status transition; see Versions and statuses.
3. Retire the agent
Section titled “3. Retire the agent”tanomis agent rm support-copilot --scope globalrm soft-retires exactly one agent registration. The scope selector is mandatory because global
and tenant-scoped agents may share a name; use --scope tenant --scope-tenant-id TENANT for a
tenant-scoped agent. History, versions, sessions, and ledger entries are preserved. Permanent
erasure is an administrator operation and is not reversible.
Clean up locally
Section titled “Clean up locally”tanomis agent delete-local support-copilot --agents-root ./agentsRemoves the scaffolded directory from disk. It does nothing on the platform.
Where to go next
Section titled “Where to go next”- Roll out and roll back: moving tenants between versions before you retire one.
- Audit and evidence: where the disable and retire events land.