Delete or revoke an API key
You can revoke or delete API keys from the Developer Console. Revoking temporarily disables a key; deleting permanently removes it. Both stop the key from authenticating requests immediately.
Revoke a key
Revoking disables a key without deleting it, so you can restore it later if needed. Use this for compromised keys, routine security rotation, or any situation where you might need the key again.
- Go to API keys in the Developer Console
- Click the three dots next to the key
- Select Revoke
The key stops working immediately.
Delete a key
Deleting permanently removes a key from your account and can't be undone. Only delete keys you're certain you won't need again.
- Go to API keys in the Developer Console
- Click the three dots next to the key
- Select Delete
Deleted keys can't be recovered
If you deleted a key by mistake, you'll need to create a new one. To keep your options open, revoke instead of delete.
Can I restore a revoked key?
Yes — see Restore an API key.