Usuwanie zbioru danych
Aby usunąć zbiór danych, wyślij żądanie HTTP DELETE
do punktu końcowego delete dataset, który zawiera też identyfikator zbioru danych:
https://mapsplatformdatasets.googleapis.com/v1/projects/PROJECT_NUMBER_OR_ID/datasets/DATASET_ID
Na przykład:
curl -X DELETE \
-H 'X-Goog-User-Project: PROJECT_NUMBER_OR_ID' \
-H "Authorization: Bearer $TOKEN" \
"https://mapsplatformdatasets.googleapis.com/v1/projects/PROJECT_NUMBER_OR_ID/datasets/f57074a0-a8b6-403e-9df1-e9fc46"
To żądanie zwraca taką odpowiedź:
{}
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-01-14 UTC.
[null,null,["Ostatnia aktualizacja: 2025-01-14 UTC."],[[["Permanently delete a dataset by sending an HTTP `DELETE` request to the specified endpoint with the dataset's ID."],["Include the `X-Goog-User-Project` header to specify the project and an `Authorization` header with a valid bearer token for authentication."],["Upon successful deletion, an empty JSON response (`{}`) is returned, indicating the dataset has been removed."]]],[]]