Xóa tập dữ liệu
Xoá một tập dữ liệu bằng cách gửi yêu cầu DELETE
HTTP đến điểm cuối xoá tập dữ liệu. Điểm cuối này cũng bao gồm mã nhận dạng của tập dữ liệu:
https://mapsplatformdatasets.googleapis.com/v1/projects/PROJECT_NUMBER_OR_ID/datasets/DATASET_ID
Ví dụ:
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"
Yêu cầu này trả về phản hồi sau:
{}
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-01-14 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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."]]],[]]