Method: properties.delete
Đánh dấu Tài sản mục tiêu là đã xoá tạm thời (tức là "đã chuyển vào thùng rác") và trả về tài sản đó.
API này không có phương thức để khôi phục các tài sản bị xoá không vĩnh viễn. Tuy nhiên, bạn có thể khôi phục các tệp đó bằng giao diện người dùng Thùng rác.
Nếu bạn không khôi phục các tài sản trước thời điểm hết hạn, thì Tài sản và tất cả tài nguyên con (ví dụ: GoogleAdsLinks, Streams, AccessBindings) sẽ bị xoá vĩnh viễn. https://support.google.com/analytics/answer/6154772
Trả về lỗi nếu không tìm thấy mục tiêu.
Yêu cầu HTTP
DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
name |
string
Bắt buộc. Tên của Cơ sở lưu trú cần xoá không vĩnh viễn. Định dạng: properties/{property_id} Ví dụ: "properties/1000"
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của Property
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/analytics.edit
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."],[[["This API allows for the soft deletion of a Google Analytics 4 property, essentially moving it to the trash."],["Soft-deleted properties and their associated resources are permanently deleted after a period; they can be restored before that time via the Trash Can UI."],["The API requires a DELETE request with the property ID specified in the path, and an empty request body."],["Upon successful execution, the API returns the soft-deleted Property object in the response body."],["To use this API, you need the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This API soft-deletes a specified property identified by its name (e.g., \"properties/1000\") via a `DELETE` HTTP request. The request body must be empty. Upon success, it returns the soft-deleted Property. Soft-deleted properties can be restored through the Trash Can UI but will be permanently purged if not restored before their expiration time. The required authorization scope is `https://www.googleapis.com/auth/analytics.edit`. An error is returned if the property is not found.\n"]]