Method: people.deleteContactPhoto

Delete a contact's photo.

HTTP request

DELETE https://people.googleapis.com/v1/{resourceName=people/*}:deleteContactPhoto

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
resourceName

string

Required. The resource name of the contact whose photo will be deleted.

Query parameters

Parameters
personFields

string (FieldMask format)

Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post mutate get. Valid values are:

  • addresses
  • ageRanges
  • biographies
  • birthdays
  • braggingRights
  • coverPhotos
  • emailAddresses
  • events
  • genders
  • imClients
  • interests
  • locales
  • memberships
  • metadata
  • names
  • nicknames
  • occupations
  • organizations
  • phoneNumbers
  • photos
  • relations
  • relationshipInterests
  • relationshipStatuses
  • residences
  • sipAddresses
  • skills
  • taglines
  • urls
  • userDefined

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

The response for deleteing a contact's photo.

JSON representation
{
  "person": {
    object (Person)
  }
}
Fields
person

object (Person)

The updated person, if personFields is set in the DeleteContactPhotoRequest; otherwise this will be unset.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/contacts

For more information, see the Authorization guide.

Try it!