उपयोगकर्ता की पुष्टि अनुरोध में useAdminAccess फ़ील्ड सेट करके, एडमिन के विशेषाधिकारों से इस तरीके की पुष्टि की जा सकती है और उसे अनुमति दी जा सकती है.
ज़रूरी है. जिस सदस्यता को मिटाना है उसका रिसॉर्स का नाम. चैट ऐप्लिकेशन, लोगों की या अपनी सदस्यताएं मिटा सकते हैं. चैट ऐप्लिकेशन, दूसरे ऐप्लिकेशन की सदस्यताएं नहीं मिटा सकते.
किसी व्यक्ति की सदस्यता मिटाते समय, chat.memberships स्कोप और 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-02-27 (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"]]