Google OAuth: Error 401: deleted_client — The OAuth client was deleted
The OAuth client ID used in the request has been deleted from the Google Cloud project.
Seen on:
REST API
Meaning
Deleted clients stay invalid; you must create a new OAuth client and update the client ID/secret everywhere (apps, google-services.json, environment variables).
Common causes
- OAuth client deleted in Google Cloud Console
- Project deleted or shut down
- Old client ID left in a build/config
⚡ Quick fix
- Create a new OAuth client ID
- Update configs (web, Android/iOS plists, Firebase)
- Restore the project within 30 days if it was deleted
Detailed fix by platform
Google Cloud
# APIs & Services → Credentials → Create credentials → OAuth client ID
How to diagnose
- Client — Exists in Credentials?
- Config — Which ID is the app using?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Access blocked: has not completed the Google verification process Google OAuth: Error 403: access_denied — The developer hasn't given you access to this app / has not completed the Google verification process
- access_denied OAuth 2.0 Error: access_denied (The user or authorization server denied the request)
- auth/popup-closed-by-user Firebase Auth: auth/popup-closed-by-user / auth/popup-blocked / auth/cancelled-popup-request
Most viewed in Authentication
Other ways to find it
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026