ลบชุดข้อมูล
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ลบชุดข้อมูลโดยส่งคำขอ HTTP DELETE
ไปยังปลายทาง
ลบชุดข้อมูลซึ่งมี
รหัสของชุดข้อมูลด้วย
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 Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003ePermanently delete a dataset by sending an HTTP \u003ccode\u003eDELETE\u003c/code\u003e request to the specified endpoint with the dataset's ID.\u003c/p\u003e\n"],["\u003cp\u003eInclude the \u003ccode\u003eX-Goog-User-Project\u003c/code\u003e header to specify the project and an \u003ccode\u003eAuthorization\u003c/code\u003e header with a valid bearer token for authentication.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful deletion, an empty JSON response (\u003ccode\u003e{}\u003c/code\u003e) is returned, indicating the dataset has been removed.\u003c/p\u003e\n"]]],[],null,["Delete a dataset by sending an HTTP `DELETE` request to the\n[delete dataset](/maps/documentation/datasets/reference/rest/v1/projects.datasets/delete) endpoint that\nalso includes the ID of the dataset: \n\n```html\nhttps://mapsplatformdatasets.googleapis.com/v1/projects/PROJECT_NUMBER_OR_ID/datasets/DATASET_ID\n```\n\nFor example: \n\n```\ncurl -X DELETE \\\n-H 'X-Goog-User-Project: PROJECT_NUMBER_OR_ID' \\\n-H \"Authorization: Bearer $TOKEN\" \\\n\"https://mapsplatformdatasets.googleapis.com/v1/projects/PROJECT_NUMBER_OR_ID/datasets/f57074a0-a8b6-403e-9df1-e9fc46\"\n```\n\nThis request returns the following response: \n\n```\n{}\n```"]]