Method: photos.batchDelete
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://streetviewpublish.googleapis.com/v1/photos:batchDelete
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
{
"photoIds": [
string
]
} |
Fields |
photoIds[] |
string
Required. IDs of the Photos . HTTP GET requests require the following syntax for the URL query parameter: photoIds=<id1>&photoIds=<id2>&... .
|
Response body
Response to batch delete of one or more Photos
.
If successful, the response body contains data with the following structure:
JSON representation |
{
"status": [
{
object (Status )
}
]
} |
Fields |
status[] |
object (Status )
The status for the operation to delete a single Photo in the batch request.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/streetviewpublish
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["The `photos.batchDelete` API allows for deleting multiple photos and their metadata within Street View Publish."],["The request body requires a list of `photoIds` for the photos to be deleted."],["The response provides individual status updates for each photo deletion attempt."],["Authorization with the `https://www.googleapis.com/auth/streetviewpublish` scope is necessary."],["Failures may occur for individual photos even if the overall batch deletion request is successful, details of which can be found in the response."]]],["This describes how to batch delete photos and their metadata via a POST request to `https://streetviewpublish.googleapis.com/v1/photos:batchDelete`. The request body requires a JSON array of `photoIds`. The response body includes an array of `status` objects, indicating the success or failure of each individual photo deletion. Authentication requires the `https://www.googleapis.com/auth/streetviewpublish` OAuth scope. The URL uses gRPC transcoding. Failures may occur due to missing fields or authentication errors.\n"]]