v1.16.2Web App
•3 min read

Deleting a project or account now removes its synced secrets

Deleting your account now deletes every project where you're the only member. Before this fix, those projects stayed in the database after the account was gone, with their encrypted keys, service tokens, request logs, and integration connections.

What happens to a project depends on who else is in it:

  • You're the only member: the project and everything in it is deleted.
  • You're the only owner, and it has other members: deletion is refused and nothing changes. Transfer ownership or delete the project, then try again.
  • Someone else owns it: the project stays and you're removed from it. Your entries in its request logs stay, so the other members keep a record of what you did. They show the name and email your account had, marked as a deleted account.

Request log entries are now kept for 90 days in every project, then deleted, including those of deleted accounts.

Before deleting a project, ApiVault also removes the secrets it synced to Vercel, Supabase, Cloudflare, and GitHub. It first checks that it can reach every integration. If one is unavailable or has revoked ApiVault's access, your account is kept, nothing is removed from any integration, and you're shown which secrets it holds. Reconnect it and try again, or delete anyway and remove the listed secrets at the provider yourself. If a provider fails partway through instead, your account is still kept, you're shown what's left, and those integrations stay disconnected.

Deleting a single project from its Danger Zone now works the same way. Before this fix, the project's integration tokens were deleted while the secrets it had synced stayed at the provider, with nothing left in ApiVault able to remove them. Now the secrets are removed first, after the same check that every integration can be reached. If one can't be, nothing is removed and the project is kept. If a provider fails partway through, the project is kept and you're shown what's left, and you can try again later or delete anyway. API clients get a 409 with code INTEGRATION_CLEANUP_INCOMPLETE and a leftovers list, and can pass ?force=true to delete anyway.

If you uninstalled ApiVault from a provider, these cases no longer leave anything stuck:

  • Vercel, webhook missed: ApiVault recognises the uninstalled configuration the next time it uses it. Vercel has already deleted the variables, so deleting or unlinking no longer reports them as left behind.
  • Vercel, reinstalled: the new installation takes over the connection you had, with its linked projects, instead of appearing beside it. Until each project syncs again, it shows no managed variables or last sync time, because Vercel deleted those variables with the old installation.
  • GitHub, reinstalled during a removal: the new installation finishes deleting the secrets. Reconnect GitHub now appears on a connection stuck disconnecting.

Choosing Delete Anyway still ends ApiVault's access at Vercel, Supabase, and Cloudflare, unless another ApiVault project shares it. The GitHub App stays installed until you uninstall it on GitHub.

For details, see Deleting your account and Resetting or deleting a project.