Method: photo.delete
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Löscht Photo
und die zugehörigen Metadaten.
Diese Methode gibt die folgenden Fehlercodes zurück:
HTTP-Anfrage
DELETE https://streetviewpublish.googleapis.com/v1/photo/{photoId}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
photoId |
string
Erforderlich. ID von Photo .
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich ist, ist der Antworttext leer.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/streetviewpublish
Weitere Informationen finden Sie in der Übersicht über OAuth 2.0.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[[["\u003cp\u003ePermanently deletes a specified Photo and its metadata from Street View Publish.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/streetviewpublish\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eReturns an error if the user lacks permission or the photo ID is invalid.\u003c/p\u003e\n"],["\u003cp\u003eUses a DELETE request to the URL \u003ccode\u003ehttps://streetviewpublish.googleapis.com/v1/photo/{photoId}\u003c/code\u003e with the photo ID as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and a successful deletion results in an empty response body.\u003c/p\u003e\n"]]],["This document outlines how to delete a photo and its metadata using a `DELETE` HTTP request. The request is sent to `https://streetviewpublish.googleapis.com/v1/photo/{photoId}`, with the required `photoId` parameter specifying the photo to delete. The request body must be empty. A successful deletion returns an empty response body. The process requires the `https://www.googleapis.com/auth/streetviewpublish` authorization scope. Potential error codes include `PERMISSION_DENIED` and `NOT_FOUND`.\n"],null,["# Method: photo.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDeletes a [Photo](/streetview/publish/reference/rest/v1/photo#Photo) and its metadata.\n\nThis method returns the following error codes:\n\n- [google.rpc.Code.PERMISSION_DENIED](/streetview/publish/reference/rest/v1/Code#ENUM_VALUES.PERMISSION_DENIED) if the requesting user did not create the requested photo.\n- [google.rpc.Code.NOT_FOUND](/streetview/publish/reference/rest/v1/Code#ENUM_VALUES.NOT_FOUND) if the photo ID does not exist.\n\n### HTTP request\n\n`DELETE https://streetviewpublish.googleapis.com/v1/photo/{photoId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------|\n| `photoId` | `string` Required. ID of the [Photo](/streetview/publish/reference/rest/v1/photo#Photo). |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/streetviewpublish`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]