Method: accounts.delete

Deletes a user's account.

HTTP request


The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
  "localId": string,
  "idToken": string,
  "tenantId": string,
  "targetProjectId": string


The ID of user account to delete. Specifying this field requires a Google OAuth 2.0 credential with proper permissions. Requests from users lacking the credential should pass an ID token instead.



The Identity Platform ID token of the account to delete. Require to be specified for requests from end users that lack Google OAuth 2.0 credential. Authenticated requests bearing a Google OAuth2 credential with proper permissions may pass localId to specify the account to delete alternatively.



The ID of the tenant that the account belongs to, if applicable. Only require to be specified for authenticated requests bearing a Google OAuth 2.0 credential that specify localId of an account that belongs to an Identity Platform tenant.



The ID of the project which the account belongs to. Should only be specified in authenticated requests that specify localId of an account.

Authorization requires the following IAM permission on the specified resource targetProjectId:

  • firebaseauth.users.delete

Response body

If successful, the response body will be empty.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.