Key model decommissioning practices are to identify every place the model is used, remove or disable production access, and revoke dependent credentials and integrations. Teams should preserve records needed for audit and rollback, then securely dispose of model artefacts, training data references, and cached outputs according to retention rules and legal holds.
What decommissioning has to prove before a model is truly retired
Model decommissioning is not just a toggle-off event. The practical test is whether you have identified every place the model can still be invoked, every integration that can still call it, and every dependent secret or session that can still reach it. If any one of those paths remains, the model is not fully decommissioned, only hidden from some users.
A good retirement process therefore starts with a full usage map: production endpoints, internal tools, batch jobs, UI hooks, API consumers, notebooks, and any automation that wraps the model. That inventory should include indirect access paths, because teams often remove the obvious endpoint while leaving scheduled jobs, cached clients, or shadow integrations untouched.
For governance-heavy programmes, AI Governance Guide is the most natural home for the broader control side of this work, because decommissioning sits inside model inventory, ownership, approval, and retirement discipline rather than being an isolated operations task.
Which access paths and dependencies must be removed first?
The first removals should be the ones that can still produce live impact. Disable or remove production access before you clean up archives, documentation, or historical artefacts, because a live invocation path is the highest-risk residue. Then revoke the credentials, tokens, keys, service accounts, and third-party integrations that were allowed to call the model.
This is where dependency tracing matters. A model may be retired in one platform but still reachable through a gateway, SDK wrapper, plugin, CI job, or upstream application. Teams should also check whether downstream systems still expect responses from that model, because a silent retirement can break business flows or cause fallback behaviour that is harder to detect than an obvious outage.
For machine and service access, the retirement pattern is the same as lifecycle control for other non-human access paths: discover what still authenticates, remove what no longer should, and confirm the inactive path is actually dead rather than merely unused. The NHI Lifecycle Management Guide and Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs both reinforce that offboarding only works when discovery, ownership, and revocation happen together.
How should teams handle records, artefacts, and retained outputs?
Decommissioning should preserve what is needed for audit, incident review, and rollback, but nothing more. Keep the minimum set of records that prove what was retired, who approved it, when access was removed, and what version or configuration was in service at the time. That makes the retirement defensible without leaving the model environment partially live.
After that, dispose of training data references, cached outputs, temporary files, embedded prompts, and model artefacts according to retention rules and legal holds. The key judgement is to separate evidence that must remain from working material that should not continue to exist in a usable state. If the model touched regulated or sensitive data, the disposal step should be treated as part of the security boundary, not just a housekeeping exercise.
Where model artefacts or cached outputs are stored in shared infrastructure, teams should also look for secondary exposure such as copied artefacts in notebooks, backup stores, or experiment tracking systems. The Shadow AI and AI Agent Discovery Guide is useful here because retirement often fails when the organisation forgets where the model was copied, embedded, or reused outside the formal platform.
Risk and Threat Considerations
Retired models can remain exploitable if one call path, secret, or cached dependency survives. The main risk is not that the model still exists somewhere, but that someone else can still reach it after the business believes it has been taken out of service.
Failure mechanism: Partial decommissioning leaves valid credentials, residual integrations, or stale replicas in place, which lets callers continue invoking the model or retrieving its outputs. Attackers and insiders can abuse those remnants for unauthorised access, data exposure, or unexpected spending.
Impact: The organisation can end up with a model that is “retired” on paper but still operational in practice, creating audit failure, residual data exposure, and a delayed incident response problem if compromise occurred before shutdown.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 sets the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| ISO/IEC 27001:2022 | A.5.9 — Inventory of information and other associated assets | Model retirement depends on knowing every place the model and its artefacts exist. |
| A.5.12 — Classification of information | Retained records, artefacts and outputs need handling based on sensitivity and retention needs. | |
| Recommendation — Maintain an inventory of model assets and remove them from service before closure. Classify retained model records and dispose of working artefacts according to their sensitivity. | ||
| NIST SP 800-53 Rev 5 | CM-8 — System Component Inventory | Decommissioning requires finding all components, integrations and deployment paths that still reference the model. |
| AC-2 — Account Management | Retiring a model requires disabling or removing accounts and service access that can still invoke it. | |
| AU-11 — Audit Record Retention | The question explicitly requires preserving records for audit and rollback. | |
| Recommendation — Update the component inventory before and after model retirement to confirm all dependencies are removed. Disable or remove accounts and service access tied to the retired model. Retain decommissioning evidence and rollback records for the required period. | ||
Practitioner Guidance
What to verify: Confirm that the model cannot be invoked through any production, test, automation, or indirect integration path before you declare decommissioning complete. Verify revocation as an observed state, not as a ticket closure.
Decision rule: If a secret, token, or integration can still authenticate to anything that reaches the model, rotate or revoke that path first and treat the model as still exposed until the call fails cleanly.
Practitioner takeaway: Good decommissioning is measured by the absence of reachable access, not by the absence of user traffic; if the invocation path still exists, the model is not retired.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org