Method: properties.delete
ویژگی هدف را بهعنوان پاکشده (یعنی «حذفشده») علامتگذاری میکند و آن را برمیگرداند.
این API روشی برای بازیابی ویژگی های حذف شده نرم ندارد. با این حال، آنها را می توان با استفاده از سطل زباله UI بازیابی کرد.
اگر ویژگیها قبل از زمان انقضا بازیابی نشوند، ویژگی و همه منابع فرزند (به عنوان مثال: GoogleAdsLinks، Streams، AccessBindings) برای همیشه پاک میشوند. https://support.google.com/analytics/answer/6154772
اگر هدف پیدا نشد، خطا را برمیگرداند.
درخواست HTTP
DELETE https://analyticsadmin.googleapis.com/v1beta/{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 you to mark a Google Analytics 4 property as soft-deleted, essentially moving it to the trash."],["Soft-deleted properties can be restored through the Trash Can UI before they are permanently purged."],["The API requires a `DELETE` request with the property ID specified in the path parameter."],["An empty request body is necessary, and a successful deletion returns the `Property` object."],["To use this API, you need the `https://www.googleapis.com/auth/analytics.edit` authorization scope."]]],["This API marks a Property as soft-deleted via a DELETE HTTP request to `https://analyticsadmin.googleapis.com/v1beta/{name=properties/*}`. The `name` path parameter, in the format \"properties/{property_id}\", specifies the target Property. The request body must be empty. A successful operation returns the deleted Property. Soft-deleted properties can be restored via the Trash Can UI, and permanently purged after expiration. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` scope. An error is returned if the property is not found.\n"]]