Bắt buộc. Tên tài nguyên của gói thành viên cần xoá. Ứng dụng trò chuyện có thể xoá gói thành viên của người dùng hoặc của chính ứng dụng. Ứng dụng trò chuyện không thể xoá gói thành viên của các ứng dụng khác.
Khi xoá gói thành viên của người dùng, bạn phải có phạm vi chat.memberships và định dạng spaces/{space}/members/{member}. Bạn có thể sử dụng email này làm email đại diện cho {member}. Ví dụ: spaces/{space}/members/example@gmail.com, trong đó example@gmail.com là email của người dùng Google Chat.
Khi xoá gói thành viên của ứng dụng, bạn phải có phạm vi chat.memberships.app và định dạng spaces/{space}/members/app.
Định dạng: spaces/{space}/members/{member} hoặc spaces/{space}/members/app.
Tham số truy vấn
Thông số
useAdminAccess
boolean
Không bắt buộc. Khi true, phương thức này sẽ chạy bằng các đặc quyền quản trị viên Google Workspace của người dùng.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]