Method: domains.users.delete

Deletes a user from a domain. Returns NOT_FOUND if the user does not exist.

HTTP request

DELETE https://gmailpostmastertools.googleapis.com/v2beta/{name=domains/*/users/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The resource name of the user to delete. Format: domains/{domain}/users/{user}

Request body

The request body must be empty.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/postmaster
  • https://www.googleapis.com/auth/postmaster.user

For more information, see the Authorization guide.