# Remove the agent's identity and access when the agent is retired

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

Check 26 of 30: Remove the agent's identity and access when the agent is retired. Leftover identities from retired agents keep their permissions and nobody is watching them. Tying the identity to the agent's lifecycle removes the access with the agent.

## Why it matters

Leftover identities from retired agents keep their permissions and nobody is watching them. Tying the identity to the agent's lifecycle removes the access with the agent.

## How, in each cloud

- **AWS:** none found on 2026-11-10
- **Google Cloud:** Use agent identity, which Google documents as tied to the lifecycle of the agent.
- **Azure:** Use a system-assigned managed identity, which is deleted when the container app is deleted.

## What the documentation says

- "is tied to the lifecycle of the agent, making agent identity a more" ([source](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/runtime/agent-identity))
- "A system-assigned identity is tied to your container app and is deleted when your container app is deleted." ([source](https://learn.microsoft.com/en-us/azure/container-apps/managed-identity))

- [Previous: Test permission and policy changes in a dry run before enforcing them](/checklist/test-before-enforcing/)
- [Next: Turn on organization-wide audit logging of control-plane actions](/checklist/control-plane-audit-logs/)

## Related pages

- [Turn on organization-wide audit logging of control-plane actions: the check, and how in AWS, Google Cloud and Azure](/checklist/control-plane-audit-logs/)
- [Log reads and writes to the data the agent touches: the check, and how in AWS, Google Cloud and Azure](/checklist/log-data-access/)
- [Make every logged action traceable to the specific agent identity: the check, and how in AWS, Google Cloud and Azure](/checklist/attribute-actions-to-the-agent/)

## Sources

- docs.cloud.google.com/gemini-enterprise-agent-platform/scale/runtime/agent-ident: https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/runtime/agent-identity (read 10 Nov 2026)
- learn.microsoft.com/en-us/azure/container-apps/managed-identity: https://learn.microsoft.com/en-us/azure/container-apps/managed-identity (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://aiagentaccesscontrol.com/checklist/retire-identity-with-agent/
