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