Method: properties.delete
ویژگی هدف را بهعنوان پاکشده (یعنی «حذفشده») علامتگذاری میکند و آن را برمیگرداند.
این API روشی برای بازیابی ویژگی های حذف شده نرم ندارد. با این حال، آنها را می توان با استفاده از سطل زباله UI بازیابی کرد.
اگر ویژگیها قبل از زمان انقضا بازیابی نشوند، ویژگی و همه منابع فرزند (به عنوان مثال: GoogleAdsLinks، Streams، AccessBindings) برای همیشه پاک میشوند. https://support.google.com/analytics/answer/6154772
اگر هدف پیدا نشد، خطا را برمیگرداند.
درخواست HTTP
DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
name | string مورد نیاز. نام ویژگی برای حذف نرم. قالب: خواص/{property_id} مثال: "properties/1000" |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از Property
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/analytics.edit
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-14 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-14 بهوقت ساعت هماهنگ جهانی."],[[["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"]]