刪除資料集
將 HTTP DELETE
要求傳送至刪除資料集端點,並一併附上資料集 ID,即可刪除資料集:
https://mapsplatformdatasets.googleapis.com/v1/projects/PROJECT_NUMBER_OR_ID/datasets/DATASET_ID
例如:
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"
這項要求會傳回以下回應:
{}
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-14 (世界標準時間)。
[null,null,["上次更新時間:2025-01-14 (世界標準時間)。"],[[["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."]]],[]]