deleted_client 🔐 Authentication

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

  1. Create a new OAuth client ID
  2. Update configs (web, Android/iOS plists, Firebase)
  3. Restore the project within 30 days if it was deleted

Detailed fix by platform

Google Cloud

  1. # APIs & Services → Credentials → Create credentials → OAuth client ID

How to diagnose

  1. Client — Exists in Credentials?
  2. 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:

🧠 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.