Method: accounts.delete
تضع هذه الدالة علامة على الحساب المستهدَف بأنّه تم حذفه مؤقتًا (أي "مُرسَل إلى المهملات") وتُعيده.
لا تتضمّن واجهة برمجة التطبيقات هذه طريقة لاستعادة الحسابات المحذوفة مؤقتًا. ومع ذلك، يمكن استعادتها باستخدام واجهة مستخدم "المهملات".
في حال عدم استعادة الحسابات قبل وقت انتهاء الصلاحية، ستتم إزالة الحساب وجميع الموارد الفرعية (مثل المواقع وGoogleAdsLinks وStreams وAccessBindings) نهائيًا. https://support.google.com/analytics/answer/6154772
تعرِض رسالة خطأ في حال عدم العثور على الهدف.
طلب HTTP
DELETE https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
name |
string
مطلوب. اسم الحساب المطلوب حذفه مؤقتًا التنسيق: accounts/{account}، على سبيل المثال: "accounts/100"
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يكون نص الاستجابة هو عنصر JSON فارغ.
نطاقات التفويض
يجب توفير نطاق 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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Marks an account as soft-deleted, effectively sending it to the trash but allowing for restoration before permanent deletion."],["Permanently deletes the account and all associated resources after a certain expiration time if not restored."],["Requires the `analytics.edit` OAuth scope for authorization."],["Uses a `DELETE` request to the specified endpoint with the account ID as a path parameter."],["The request body should be empty, and a successful operation will return an empty response body."]]],["This API endpoint soft-deletes an account by its name using a `DELETE` request to `https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}`. The `name` path parameter (e.g., \"accounts/100\") is required. The request body must be empty. Upon successful deletion, it returns an empty JSON object. The operation is irreversible via the API, requiring UI restoration before a certain time to prevent permanent data loss. It needs `https://www.googleapis.com/auth/analytics.edit` authorization. An error is returned if the target account is not found.\n"]]