Method: accounts.delete
টার্গেট অ্যাকাউন্টকে সফট-ডিলিট (যেমন: "ট্র্যাশড") হিসেবে চিহ্নিত করে এবং এটি ফেরত দেয়।
এই API-তে নরম-মুছে ফেলা অ্যাকাউন্টগুলি পুনরুদ্ধার করার কোনও পদ্ধতি নেই। যাইহোক, ট্র্যাশ ক্যান UI ব্যবহার করে সেগুলি পুনরুদ্ধার করা যেতে পারে।
মেয়াদ শেষ হওয়ার আগে অ্যাকাউন্টগুলি পুনরুদ্ধার করা না হলে, অ্যাকাউন্ট এবং সমস্ত চাইল্ড রিসোর্স (যেমন: বৈশিষ্ট্য, GoogleAdsLinks, স্ট্রিম, অ্যাক্সেসবিন্ডিং) স্থায়ীভাবে শুদ্ধ করা হবে। https://support.google.com/analytics/answer/6154772
লক্ষ্য না পাওয়া গেলে একটি ত্রুটি প্রদান করে।
HTTP অনুরোধ
DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=accounts/*}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
name | string প্রয়োজন। অ্যাকাউন্টের নাম সফট-ডিলিট করতে হবে। বিন্যাস: accounts/{account} উদাহরণ: "accounts/100" |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডি একটি খালি JSON অবজেক্ট।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগ প্রয়োজন:
-
https://www.googleapis.com/auth/analytics.edit
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-14 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["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"]]