Treat removal as two separate actions: uninstall the tool and delete any local data it left behind. Verify whether configuration directories still exist, then remove them if needed. After that, assume any linked accounts or APIs may still be exposed and rotate keys, log out active sessions, and remove unknown devices or activity on every connected platform.
Why This Matters for Security Teams
Removing a connected AI assistant is not just software cleanup. These tools often cache prompts, documents, embeddings, session tokens, and API material in local storage, which means an uninstall can leave sensitive data behind even after the app disappears. That is why removal should be treated as a data exposure event, not a simple application change. NIST’s Security and Privacy Controls framework is useful here because it reinforces that account revocation, media sanitization, and access review are separate control outcomes.
For NHI governance, the risk is broader than the workstation. A connected assistant may have touched email, chat, file stores, SaaS APIs, or internal knowledge tools, so lingering sessions and stale tokens can remain valid after local removal. NHIMG research has repeatedly shown that NHI incidents often stem from weak rotation and limited visibility, including the State of Non-Human Identity Security findings on low confidence and poor control over connected identities. In practice, many security teams discover residual data only after an account review, not during the uninstall itself.
How It Works in Practice
The correct process has two tracks: local residue removal and connected identity shutdown. First, uninstall the assistant using the operating system’s normal removal path, then inspect the machine for user profile folders, cache directories, configuration files, local databases, and sync artifacts that may remain outside the application binary. If the assistant stored model history, plug-in state, or retrieved content locally, those folders should be deleted according to approved endpoint hygiene procedures. If the device is managed, the cleanup should be verified through endpoint management or scripting rather than by user report alone.
Second, assume anything the assistant could access is still exposed until proven otherwise. Revoke API keys, rotate secrets, invalidate refresh tokens, terminate active sessions, and remove trusted devices on every connected platform. This aligns with the access-control discipline described in NIST controls and with the NHI lessons in NHIMG’s Ultimate Guide to NHIs, especially where third-party integrations and OAuth-connected services are involved. Where possible, use logs to confirm what the assistant accessed before removal, then scope the cleanup to those systems rather than relying on a broad assumption that “uninstall means gone.”
- Remove the application through the OS or MDM, then check for residual folders and local caches.
- Rotate any keys, tokens, certificates, or service credentials the assistant could have used.
- Sign out active sessions and remove delegated access from SaaS, email, chat, and file systems.
- Review audit logs for recent assistant activity and confirm no unknown devices remain trusted.
These controls tend to break down when the assistant is installed across multiple user profiles or when its data is stored in roaming profiles, shared caches, or unmanaged cloud sync paths because local deletion does not reach every copy.
Common Variations and Edge Cases
Tighter removal often increases operational overhead, requiring organisations to balance fast offboarding against the need to preserve evidence, maintain business continuity, and avoid leaving behind recoverable data. Current guidance suggests handling some edge cases differently depending on how the assistant was deployed.
For example, if the assistant ran as a browser extension, cleanup must include browser storage, saved sessions, and extension permissions. If it was embedded in a collaboration platform, uninstalling the desktop client may do nothing to revoke the backend app registration. If the tool used shared service accounts or pooled API credentials, a single user removal is not enough because the secret may still be valid elsewhere. This is where best practice is evolving rather than fully standardised. Some teams now pair uninstall with automated secret rotation and delegated-access review, while others still rely on manual ticketing. NHIMG’s DeepSeek breach analysis and the Schneider Electric credentials breach both reinforce the practical lesson: lingering identity state is often more dangerous than the app itself.
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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Secret rotation and revocation are central when removing a connected assistant. |
| OWASP Agentic AI Top 10 | A-04 | Agentic tools can retain access through sessions and delegated actions after removal. |
| CSA MAESTRO | MAE-5 | MAESTRO covers lifecycle control for autonomous assistants and their access teardown. |
| NIST AI RMF | AI RMF supports governed decommissioning of AI systems that touched sensitive data. | |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege and access revocation apply directly to assistant offboarding. |
Use a lifecycle offboarding process that disables access, logs out sessions, and deletes retained data.
Related resources from NHI Mgmt Group
- How should security teams handle risks from AI browser extensions?
- How should security teams govern API keys used for generative AI access?
- How should security teams handle AI interactions that can expose sensitive data in real time?
- How should security teams reduce stale access in AI-connected data environments?