Skip to main content

Module identity_delete

Module identity_delete 

Source
Expand description

Deleting an identity account, whoever asks: the window’s deleteidentityaccount and an agent’s Google disconnect run this one function, so the grant is revoked at the provider, the secrets, links, Google grants and log are removed, and the windows and the agents that held it are told, the same way either time.

Functions§

delete_identity_account 🔒
Revokes the account’s grant at its provider, removes its credential material and rows, and announces it. With require_revoke a revoke that failed keeps the account (deleted: false), so the delete can be retried while the grant can still be ended.
release_sign_in_values 🔒
The values read from the account’s sign-in files are no longer withheld from transcripts once the account is deleted, the provider has revoked the grant and the credential directory is removed. Otherwise (a grant not revoked, a directory kept or not removed) they stay withheld.
remove_secrets 🔒
What the cleanup did, returned to Connectors so a login that couldn’t be removed is reported, not hidden (SPEC_ARMORY_ACCOUNTS_DELETE_AND_INLINE_DETAIL_2026_10_04.md H3). Null when there was no account row to clean up after.
remove_vault_entry 🔒
An API key account’s key is a Vault entry: it goes with the account. A failure is reported like a keychain one.
revoke_at_provider 🔒
An OAuth grant is revoked at the provider first, while the token is still in the keychain; otherwise it would live on there (spec §7 “Disconnect”). Null when there’s none.
tell_windows_and_agents 🔒
The windows read the accounts again, and each agent that held the account hears its credentials were revoked.