उपयोगकर्ता की पुष्टि के लिए, अनुमति के इन स्कोप में से किसी एक का इस्तेमाल करें:
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.app (स्पेस से कॉलिंग ऐप्लिकेशन हटाने के लिए)
https://www.googleapis.com/auth/chat.import (सिर्फ़ इंपोर्ट मोड वाले स्पेस)
उपयोगकर्ता की पुष्टि करने पर, एडमिन के अधिकारों को अनुमति मिलती है. ऐसा तब होता है, जब एडमिन खाता पुष्टि करता है, useAdminAccesstrue होता है, और अनुमति के इस स्कोप का इस्तेमाल किया जाता है:
ऐप्लिकेशन की मदद से पुष्टि करने की सुविधा, इन इस्तेमाल के उदाहरणों के लिए काम नहीं करती:
किसी स्पेस से Google ग्रुप को हटाना.
किसी स्पेस से Chat ऐप्लिकेशन को हटाना.
स्पेस मैनेजर की सदस्यताएं मिटाने का अनुरोध करने वाले व्यक्ति के पास, स्पेस मैनेजर की भूमिका होनी चाहिए. अगर ऐप्लिकेशन की मदद से पुष्टि करने की सुविधा का इस्तेमाल किया जा रहा है, तो Chat ऐप्लिकेशन को स्पेस बनाना होगा.
ज़रूरी है. पैसे चुकाकर ली गई सदस्यता को मिटाने के लिए, उसके संसाधन का नाम. चैट ऐप्लिकेशन, लोगों की सदस्यताएं या अपनी सदस्यताएं मिटा सकते हैं. चैट ऐप्लिकेशन, दूसरे ऐप्लिकेशन की सदस्यताएं नहीं मिटा सकते.
किसी व्यक्ति की सदस्यता मिटाने के लिए, chat.memberships स्कोप के साथ उपयोगकर्ता की पुष्टि या chat.memberships.app स्कोप के साथ ऐप्लिकेशन की पुष्टि और spaces/{space}/members/{member} फ़ॉर्मैट की ज़रूरत होती है. इस ईमेल पते का इस्तेमाल, {member} के लिए उपनाम के तौर पर किया जा सकता है. उदाहरण के लिए, spaces/{space}/members/example@gmail.com, जहां example@gmail.com, Google Chat इस्तेमाल करने वाले व्यक्ति का ईमेल पता है.
किसी ऐप्लिकेशन की सदस्यता मिटाने के लिए, chat.memberships.app स्कोप और spaces/{space}/members/app फ़ॉर्मैट की ज़रूरत होती है.
फ़ॉर्मैट: spaces/{space}/members/{member} या spaces/{space}/members/app.
क्वेरी पैरामीटर
पैरामीटर
useAdminAccess
boolean
ज़रूरी नहीं. true होने पर, यह तरीका उपयोगकर्ता के Google Workspace एडमिन के अधिकारों का इस्तेमाल करके काम करता है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-29 (UTC) को अपडेट किया गया."],[[["Deletes a specified membership from a Google Chat space, allowing removal of human users or Chat apps."],["Requires specific OAuth scopes depending on the type of membership being deleted and whether admin privileges are used."],["Supports app and user authentication, with an option for administrator approval in Developer Preview for app authentication."],["Uses a `DELETE` request with the membership's resource name specified in the path."],["Provides an optional `useAdminAccess` query parameter to utilize administrator privileges when deleting human memberships."]]],["This API action deletes a membership using a `DELETE` request to `https://chat.googleapis.com/v1/{name=spaces/*/members/*}`. It requires specifying the membership's resource name in the `name` path parameter. Deleting human memberships requires the `chat.memberships` scope, while deleting app memberships requires the `chat.memberships.app` scope. Administrators can use `useAdminAccess` query parameter to operate with elevated privileges. The request body should be empty, and a successful response returns a `Membership` instance. Necessary authorization scopes include `chat.app.memberships`, `chat.admin.memberships`, `chat.import`, `chat.memberships`, and `chat.memberships.app`.\n"]]