# Google OAuth: Error 401: deleted_client — The OAuth client was deleted

**Code:** `deleted_client` · **Category:** Authentication · **Seen on:** REST API

The OAuth client ID used in the request has been deleted from the Google Cloud project.

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/auth/google-deleted-client)
