Method: accounts.delete
Hesabı, geçici olarak silinmiş (ör. "çöp kutusuna taşındı") olarak işaretleyip döndürür.
Bu API'de, yumuşak silinmiş hesapları geri yükleme yöntemi yoktur. Ancak bu öğeler, Çöp Kutusu kullanıcı arayüzü kullanılarak geri yüklenebilir.
Hesaplar, son kullanma tarihinden önce geri yüklenmezse hesap ve tüm alt kaynaklar (ör. mülkler, GoogleAdsLinks, akışlar, erişim bağlamaları) kalıcı olarak temizlenir. https://support.google.com/analytics/answer/6154772
Hedef bulunamazsa hata döndürülür.
HTTP isteği
DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=accounts/*}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
name |
string
Zorunlu. Yumuşak silinecek hesabın adı. Biçim: accounts/{hesap} Örnek: "accounts/100"
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
Başarılı olursa yanıt metni boş bir JSON nesnesi olur.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/analytics.edit
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-01-14 UTC.
[null,null,["Son güncelleme tarihi: 2025-01-14 UTC."],[[["This API request soft-deletes a specified Google Analytics 4 account, essentially moving it to the trash."],["Soft-deleted accounts and their associated data are permanently deleted after a certain time period, unless restored through the Trash Can UI."],["The request requires the `analytics.edit` scope for authorization and uses a `DELETE` request with the account name as a path parameter."],["There's no specific API method to restore deleted accounts; restoration is handled via the Google Analytics UI."],["If the targeted account is not found, the request will return an error."]]],["This API endpoint soft-deletes an account via a `DELETE` request to `https://analyticsadmin.googleapis.com/v1alpha/{name=accounts/*}`, where `name` is the account identifier (e.g., \"accounts/100\"). The request body must be empty. A successful operation returns an empty JSON object, and the action requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. Soft-deleted accounts are recoverable via the Trash Can UI but will be permanently purged after an expiration period if not restored. The API does not contain a method to restore an account. An error will be returned if the account is not found.\n"]]