Method: photo.delete
Photo
और उसके मेटाडेटा को मिटाता है.
इस तरीके से ये गड़बड़ी कोड मिलते हैं:
एचटीटीपी अनुरोध
DELETE https://streetviewpublish.googleapis.com/v1/photo/{photoId}
यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
photoId |
string
ज़रूरी है. Photo का आईडी.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब का मुख्य हिस्सा खाली रहता है.
अनुमति देने के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/streetviewpublish
ज़्यादा जानकारी के लिए, OAuth 2.0 की खास जानकारी देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-12-01 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2023-12-01 (UTC) को अपडेट किया गया."],[[["Permanently deletes a specified Photo and its metadata from Street View Publish."],["Requires authorization with the `https://www.googleapis.com/auth/streetviewpublish` scope."],["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."]]],["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"]]