Method: properties.delete
تضع هذه الوظيفة علامة على "الخاصية المستهدَفة" على أنّها تم حذفها مؤقتًا (أي "مُرسَلة إلى المهملات") وتُعيدها.
لا تتضمّن واجهة برمجة التطبيقات هذه طريقة لاستعادة المواقع التي تم حذفها مؤقتًا. ومع ذلك، يمكن استعادتها باستخدام واجهة مستخدم "المهملات".
في حال عدم استعادة المواقع قبل وقت انتهاء الصلاحية، ستتم إزالة الموقع الإلكتروني وجميع الموارد الفرعية (مثل GoogleAdsLinks وStreams وAccessBindings) نهائيًا. https://support.google.com/analytics/answer/6154772
تعرِض رسالة خطأ في حال عدم العثور على الهدف.
طلب HTTP
DELETE https://analyticsadmin.googleapis.com/v1beta/{name=properties/*}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
name |
string
مطلوب. اسم الموقع المطلوب حذفه مؤقتًا التنسيق: properties/{property_id}، على سبيل المثال: "properties/1000"
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Property
.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/analytics.edit
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة 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"]]