Method: accounts.delete
Menandai Akun target sebagai dihapus secara sementara (yaitu: "dihapus") dan menampilkannya.
API ini tidak memiliki metode untuk memulihkan akun yang dihapus permanen. Namun, item tersebut dapat dipulihkan menggunakan UI Tong Sampah.
Jika akun tidak dipulihkan sebelum waktu habis masa berlakunya, akun dan semua resource turunan (misalnya: Properti, GoogleAdsLinks, Streaming, AccessBindings) akan dihapus secara permanen. https://support.google.com/analytics/answer/6154772
Menampilkan error jika target tidak ditemukan.
Permintaan HTTP
DELETE https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Nama Akun yang akan dihapus secara soft. Format: accounts/{account} Contoh: "accounts/100"
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons adalah objek JSON kosong.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/analytics.edit
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-01-14 UTC.
[null,null,["Terakhir diperbarui pada 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"]]