Method: photo.delete
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menghapus Photo
dan metadatanya.
Metode ini menampilkan kode error berikut:
Permintaan HTTP
DELETE https://streetviewpublish.googleapis.com/v1/photo/{photoId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
photoId |
string
Wajib. ID Photo .
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons akan kosong.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut ini:
https://www.googleapis.com/auth/streetviewpublish
Untuk informasi selengkapnya, lihat Ringkasan OAuth 2.0.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 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)."]]