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/v1beta/{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."],[[["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"]]