Uwierzytelnianie użytkownika – możesz uwierzytelnić i autoryzować tę metodę przy użyciu uprawnień administratora, ustawiając w żądaniu pole useAdminAccess.
Wymagany. Nazwa zasobu członkostwa, które chcesz usunąć. Aplikacje do czatu mogą usuwać członkostwa użytkowników lub własne. Aplikacje do obsługi czatu nie mogą usuwać członkostwa w innych aplikacjach.
Podczas usuwania subskrypcji użytkownika wymagany jest zakres chat.memberships i format spaces/{space}/members/{member}. Możesz użyć adresu e-mail jako aliasu dla {member}. Na przykład spaces/{space}/members/example@gmail.com, gdzie example@gmail.com to adres e-mail użytkownika Google Chat.
Usuwanie członkostwa w aplikacji wymaga zakresu chat.memberships.app i formatu spaces/{space}/members/app.
Format: spaces/{space}/members/{member} lub spaces/{space}/members/app.
Parametry zapytania
Parametry
useAdminAccess
boolean
Opcjonalnie: Jeśli true, metoda jest wykonywana z uprawnieniami administratora Google Workspace.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]