> 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 # Method name: removeMembers(badgeId: string, memberIds: Array) # Method package: wixMembersBackend # Method menu location: wixMembersBackend --> Badges --> removeMembers # Method Link: https://dev.wix.com/docs/velo/apis/wix-members-backend/badges/remove-members.md # Method Description: Removes site members from an assigned badge. The `removeMembers()` function returns a Promise that resolves when the specified members are removed as holders of the specified badge. The `badgeId` parameter must be an ID from your site's `Members/Badges` collection. Typically, you retrieve the ID from the collection using a query or through a dataset. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Remove members from an assigned badge ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { badges } from 'wix-members-backend'; export const myRemoveMembersFunction = webMethod(Permissions.Anyone, () => { const badgeId = "3fcaacc0-a3a7-464f-9ba9-f211bdcec9fc"; const memberIds = [ "efab296e-2687-4751-9956-ee73200dd4bb", "3403e13b-8826-4af6-aa19-18784bb84a8e", "28d35f86-6694-4455-9dff-aff5d450b482" ]; return badges.removeMembers(badgeId, memberIds) .then(() => { console.log("Members removed from badge"); }) .catch((error) => { console.error(error); }); }); ``` ---