When account deletion is missing, departed identities can leave behind active accounts, stale entitlements, and unnecessary exception handling. That creates governance drift, complicates audits, and increases the chance that old access is reused or forgotten. A clean deletion process helps ensure access ends when the business relationship ends.
Why This Matters for Security Teams
When account deletion is not part of the identity lifecycle, access does not end cleanly, it lingers. That creates stale accounts, orphaned entitlements, and ambiguous ownership that can survive long after a contractor, service, or employee relationship ends. NHI Management Group’s Ultimate Guide to NHIs notes that only 20% of organisations have formal processes for offboarding and revoking API keys, which is a strong signal that deletion is often treated as optional rather than structural.
This breaks more than housekeeping. Audit teams lose confidence in entitlement inventories, incident responders cannot tell whether an account is still legitimate, and security teams inherit exceptions that accumulate over time. The problem is especially visible with service accounts and API keys because they are often reused across pipelines, apps, and integrations. OWASP’s OWASP Non-Human Identity Top 10 treats lifecycle weaknesses as a core risk because identities that cannot be cleanly retired tend to become permanently over-scoped. In practice, many security teams encounter the exposure only after a departure, migration, or breach has already forced a cleanup.
How It Works in Practice
A complete lifecycle needs more than disablement. Deletion should be a defined state transition with ownership, timing, and verification. For human accounts, that usually means revoking access, invalidating sessions, removing group membership, and deleting or archiving the account according to retention requirements. For NHIs, the same idea must extend to secrets, certificates, tokens, automation jobs, and downstream references that keep an identity alive even after the primary account is removed.
Current guidance suggests treating deletion as a coordinated workflow across identity, secret management, and application owners. NIST SP 800-53 Rev. 5 emphasises account management and access revocation controls, while the NHI Lifecycle Management Guide frames offboarding as a control point, not an administrative afterthought. A practical process usually includes:
- Triggering deletion from an authoritative source of truth, such as HR, vendor management, or asset retirement.
- Revoking active sessions and issuing immediate secret rotation where reuse is possible.
- Removing hidden dependencies in CI/CD, scheduled jobs, and application configs.
- Confirming that logs, alerting, and ownership records reflect the final state.
- Preserving only what is required for legal hold, audit, or retention policy.
This is also where the scale of the problem becomes visible. NHIMG reports that 91% of former employee tokens remain active after offboarding in its 2025 State of NHIs and Secrets in Cybersecurity research by Entro Security, which shows how often deletion and revocation diverge in real operations. The right deletion model closes both the identity and the credential path, because removing one without the other leaves a live attack surface. These controls tend to break down in distributed SaaS and CI/CD environments because deletion rarely propagates cleanly across every system that cached the original identity.
Common Variations and Edge Cases
Tighter deletion controls often increase operational overhead, requiring organisations to balance rapid access removal against retention, legal, and automation constraints. That tradeoff is real, especially in regulated environments where records must be preserved even when accounts must not remain usable. Best practice is evolving, but there is no universal standard for exactly how much should be deleted versus archived for every identity type.
Some environments cannot fully delete accounts immediately because of billing, chain-of-custody, or evidentiary requirements. In those cases, the safer pattern is to deactivate the identity, revoke every secret, and mark the record as retired so no new access can be attached. Shared service accounts and embedded credentials are harder still, because deleting one identity may break multiple applications unless dependencies have already been mapped. That is why the Guide to the Secret Sprawl Challenge matters here: stale secrets often outlive the account that created them, which means lifecycle deletion has to reach beyond the directory into code, vaults, and automation.
For teams building governance around this problem, the practical standard is simple: if an identity can be created automatically, it should also be deletable through a controlled, auditable process. Otherwise, every exception becomes a permanent access path.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-63, NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 | Identity lifecycle gaps create orphaned NHIs and stale secrets. |
| NIST CSF 2.0 | PR.AC-4 | Access revocation and account retirement map to ongoing access control hygiene. |
| NIST SP 800-63 | Lifecycle assurance depends on proof that accounts are disabled or removed appropriately. | |
| NIST Zero Trust (SP 800-207) | SC.PO-2 | Zero Trust assumes continuous validation and no lingering implicit access. |
| NIST AI RMF | GOVERN | Lifecycle accountability is part of responsible AI and identity governance. |
Inventory NHIs, define retirement steps, and verify deletion removes every dependent secret and entitlement.
Related resources from NHI Mgmt Group
- What breaks when privileged access workflows do not support account lifecycle controls for temporary access?
- What breaks when enterprises try to deploy FIDO2 without integrated lifecycle management?
- What is the difference between runtime protection and NHI lifecycle management?
- What breaks when non-human identity lifecycle processes are not automated?