> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # RemoveGroupMembers # Package: memberManagement # Namespace: GroupMembersService # Method link: https://dev.wix.com/docs/api-reference/crm/community/groups/member-management/members/remove-group-members.md ## Introduction Removes site members from a specific group. Only group admins can remove members from their group. --- ## REST API ### Schema ``` Method: removeGroupMembers Description: Removes site members from a specific group. Only group admins can remove members from their group. URL: https://www.wixapis.com/v2/groups/{groupId}/members Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: groupId Method parameters: param name: groupId | type: none | required: true query param name: memberIds | type: array | description: Member GUIDs. See the Members API for details. Return type: RemoveGroupMembersResponse EMPTY-OBJECT {} ``` ### Examples ### RemoveGroupMembers ```curl ~~~cURL curl -X DELETE \ https://wixapis.com/social-groups/v2/groups/a4caf853-c0d7-498e-8eaa-3db36522dcbf/members \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: ' -d '{ "siteMemberIds": [ "e6674661-f294-4f1f-9f22-bc11fa8164e7" ] }' ~~~ ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.memberManagement.GroupMembersService.removeGroupMembers(groupId, memberIds) Description: Removes site members from a specific group. Only group admins can remove members from their group. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: groupId Method parameters: param name: groupId | type: string | description: Group GUID. | required: true param name: memberIds | type: array | description: Member GUIDs. See the Members API for details. Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### removeGroupMembers ```javascript import { members } from '@wix/groups'; async function removeGroupMembers(groupId,memberIds) { const response = await members.removeGroupMembers(groupId,memberIds); }; ``` ### removeGroupMembers (with elevated permissions) ```javascript import { members } from '@wix/groups'; import { auth } from '@wix/essentials'; async function myRemoveGroupMembersMethod(groupId,memberIds) { const elevatedRemoveGroupMembers = auth.elevate(members.removeGroupMembers); const response = await elevatedRemoveGroupMembers(groupId,memberIds); } ``` ### removeGroupMembers (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { members } from '@wix/groups'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { members }, // Include the auth strategy and host as relevant }); async function removeGroupMembers(groupId,memberIds) { const response = await myWixClient.members.removeGroupMembers(groupId,memberIds); }; ``` ---