Method: accounts.delete
टारगेट खाते को 'मिटाया गया' (जैसे: "ट्रैश में डाला गया") के तौर पर मार्क करता है और उसे वापस लाता है.
इस एपीआई में, मिटाए गए खातों को वापस लाने का कोई तरीका नहीं है. हालांकि, उन्हें ट्रैश कैन यूज़र इंटरफ़ेस (यूआई) का इस्तेमाल करके वापस लाया जा सकता है.
अगर खातों को समयसीमा खत्म होने से पहले वापस नहीं लाया जाता है, तो खाता और सभी चाइल्ड रिसॉर्स (जैसे: प्रॉपर्टी, GoogleAdsLinks, स्ट्रीम, AccessBindings) हमेशा के लिए मिटा दिए जाएंगे. https://support.google.com/analytics/answer/6154772
टारगेट न मिलने पर, गड़बड़ी का मैसेज दिखाता है.
एचटीटीपी अनुरोध
DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=accounts/*}
यूआरएल में 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 साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]