AI-generated Key Takeaways
- 
          Permanently deletes a specified Photo and its metadata from Street View Publish. 
- 
          Requires authorization with the https://www.googleapis.com/auth/streetviewpublishscope.
- 
          Returns an error if the user lacks permission or the photo ID is invalid. 
- 
          Uses a DELETE request to the URL https://streetviewpublish.googleapis.com/v1/photo/{photoId}with the photo ID as a path parameter.
- 
          The request body should be empty, and a successful deletion results in an empty response body. 
Deletes a Photo and its metadata.
This method returns the following error codes:
- google.rpc.Code.PERMISSION_DENIEDif the requesting user did not create the requested photo.
- google.rpc.Code.NOT_FOUNDif the photo ID does not exist.
HTTP request
DELETE https://streetviewpublish.googleapis.com/v1/photo/{photoId}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| photoId | 
 Required. ID of the  | 
Request body
The request body must be empty.
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/streetviewpublish
For more information, see the OAuth 2.0 Overview.
