Method: users.settings.delegates.delete
चुने गए प्रतिनिधि (जो किसी भी तरह की पुष्टि की स्थिति में से हो सकता है) को हटाता है और ऐसी किसी भी पुष्टि को रद्द करता है जो उसे इस्तेमाल करने के लिए ज़रूरी हो.
ध्यान दें कि जिस उपयोगकर्ता को आपके ईमेल खाते का ऐक्सेस दिया गया है उसे उनके मुख्य ईमेल पते से भेजा जाना चाहिए, न कि ईमेल उपनाम से.
यह तरीका, सेवा खाते के सिर्फ़ उन क्लाइंट के लिए उपलब्ध है जिन्हें पूरे डोमेन पर अधिकार दिया गया है.
एचटीटीपी अनुरोध
DELETE https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}
यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
userId |
string
उपयोगकर्ता का ईमेल पता. खास वैल्यू "मैं" का इस्तेमाल, पुष्टि किए गए उपयोगकर्ता को दिखाने के लिए किया जा सकता है.
|
delegateEmail |
string
उस उपयोगकर्ता का ईमेल पता जिसे प्रतिनिधि की भूमिका से हटाना है.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब का मुख्य हिस्सा खाली रहता है.
अनुमति देने के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/gmail.settings.sharing
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया."],[[["Removes a delegate user identified by their primary email address, revoking any associated verification."],["This action is restricted to service account clients with delegated domain-wide authority."],["The request must specify the user and delegate's email addresses as path parameters."],["A successful operation results in an empty response body, indicating the delegate was removed."],["This functionality requires the `https://www.googleapis.com/auth/gmail.settings.sharing` OAuth scope for authorization."]]],["This outlines how to remove a delegate from a user's Gmail account. A `DELETE` HTTP request is sent to a specific URL, including the user's email (`userId`) and the delegate's email (`delegateEmail`) as path parameters. The request body must be empty. A successful removal returns an empty response body. This operation is only available to service accounts with domain-wide authority, and it requires the `gmail.settings.sharing` authorization scope. Only primary email address can be used for the delegate.\n"]]