删除数据集
向删除数据集端点发送 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"
此请求会返回以下响应:
{}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-14。
[null,null,["最后更新时间 (UTC):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."]]],[]]