Method: spaces.members.delete
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি সদস্যপদ মুছে দেয়। একটি উদাহরণের জন্য, একটি স্থান থেকে ব্যবহারকারী বা একটি Google চ্যাট অ্যাপ সরান দেখুন।
নিম্নলিখিত ধরনের প্রমাণীকরণ সমর্থন করে:
নিম্নলিখিত ব্যবহারের ক্ষেত্রে অ্যাপ প্রমাণীকরণ সমর্থিত নয়:
- একটি স্থান থেকে একটি Google গ্রুপ সরানো হচ্ছে।
- একটি স্থান থেকে একটি চ্যাট অ্যাপ সরানো হচ্ছে।
স্পেস ম্যানেজারদের সদস্যতা মুছে ফেলতে অনুরোধকারীকে অবশ্যই একজন স্পেস ম্যানেজার হতে হবে। আপনি যদি অ্যাপ প্রমাণীকরণ ব্যবহার করেন তবে চ্যাট অ্যাপটি অবশ্যই স্পেস ক্রিয়েটর হতে হবে।
HTTP অনুরোধ
DELETE https://chat.googleapis.com/v1/{name=spaces/*/members/*}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
name | string প্রয়োজন। সদস্যপদ মুছে ফেলার জন্য সম্পদের নাম. চ্যাট অ্যাপগুলি মানুষের ব্যবহারকারীদের বা তাদের নিজস্ব সদস্যতা মুছে ফেলতে পারে। চ্যাট অ্যাপ অন্য অ্যাপের মেম্বারশিপ মুছে ফেলতে পারে না। একটি মানব সদস্যপদ মুছে ফেলার সময়, ব্যবহারকারীর প্রমাণীকরণ সহ 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 অ্যাডমিনিস্ট্রেটর বিশেষাধিকার ব্যবহার করে চলে। কলিং ব্যবহারকারীকে অবশ্যই একজন Google Workspace অ্যাডমিনিস্ট্রেটর হতে হবে যেখানে চ্যাট এবং স্পেস কথোপকথন পরিচালনা করার সুবিধা রয়েছে । chat.admin.memberships OAuth 2.0 সুযোগ প্রয়োজন। অ্যাডমিন অ্যাক্সেস ব্যবহার করে একটি স্পেসে অ্যাপ সদস্যতা মুছে ফেলা সমর্থিত নয়। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া সংস্থায় Membership
একটি উদাহরণ রয়েছে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/chat.app.memberships
-
https://www.googleapis.com/auth/chat.admin.memberships
-
https://www.googleapis.com/auth/chat.import
-
https://www.googleapis.com/auth/chat.memberships
-
https://www.googleapis.com/auth/chat.memberships.app
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eDeletes a specified membership from a Google Chat space, allowing removal of human users or Chat apps.\u003c/p\u003e\n"],["\u003cp\u003eRequires specific OAuth scopes depending on the type of membership being deleted and whether admin privileges are used.\u003c/p\u003e\n"],["\u003cp\u003eSupports app and user authentication, with an option for administrator approval in Developer Preview for app authentication.\u003c/p\u003e\n"],["\u003cp\u003eUses a \u003ccode\u003eDELETE\u003c/code\u003e request with the membership's resource name specified in the path.\u003c/p\u003e\n"],["\u003cp\u003eProvides an optional \u003ccode\u003euseAdminAccess\u003c/code\u003e query parameter to utilize administrator privileges when deleting human memberships.\u003c/p\u003e\n"]]],["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"],null,["# Method: spaces.members.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDeletes a membership. For an example, see [Remove a user or a Google Chat app from a space](https://developers.google.com/workspace/chat/delete-members).\n\nSupports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):\n\n- [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) and the authorization scope:\n\n - `https://www.googleapis.com/auth/chat.app.memberships`\n- [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes:\n\n - `https://www.googleapis.com/auth/chat.memberships`\n - `https://www.googleapis.com/auth/chat.memberships.app` (to remove the calling app from the space)\n - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)\n - User authentication grants administrator privileges when an administrator account authenticates, `useAdminAccess` is `true`, and the following authorization scope is used:\n - `https://www.googleapis.com/auth/chat.admin.memberships`\n\nApp authentication is not supported for the following use cases:\n\n- Removing a Google Group from a space.\n- Removing a Chat app from a space.\n\nTo delete memberships for space managers, the requester must be a space manager. If you're using [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) the Chat app must be the space creator.\n\n### HTTP request\n\n`DELETE https://chat.googleapis.com/v1/{name=spaces/*/members/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships. When deleting a human membership, requires the `chat.memberships` scope with [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) or the `chat.memberships.app` scope with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and the `spaces/{space}/members/{member}` format. You can use the email as an alias for `{member}`. For example, `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the email of the Google Chat user. When deleting an app membership, requires the `chat.memberships.app` scope and `spaces/{space}/members/app` format. Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. |\n\n### Query parameters\n\n| Parameters ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `useAdminAccess` | `boolean` Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Deleting app memberships in a space isn't supported using admin access. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Membership](/workspace/chat/api/reference/rest/v1/spaces.members#Membership).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/chat.app.memberships`\n- `https://www.googleapis.com/auth/chat.admin.memberships`\n- `https://www.googleapis.com/auth/chat.import`\n- `https://www.googleapis.com/auth/chat.memberships`\n- `https://www.googleapis.com/auth/chat.memberships.app`\n\nFor more information, see the [Authorization guide](/workspace/chat/authenticate-authorize)."]]