> 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: onBadgeUnassigned(event: BadgeUnassignedEvent) # Method package: wixMembersV2 # Method menu location: wixMembersV2 --> onBadgeUnassigned # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/members/events/on-badge-unassigned.md # Method Description: Triggered when a member's badge is removed. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event that occurs when a badge is unassigned ```javascript // Place this code in the events.js file // of your site's Backend section. // Add the file if it doesn't exist. export function wixBadges_onBadgeUnassigned(event){ const memberID = event.data.memberId; const eventTime = event.metadata.eventTime; console.log(`Member: ${memberID} has been unassigned from badge at ${eventTime}`); } /* Full event object: * { * "data": { * "memberId": "a292ced4-245c-49e5-a368-1120b309878d" * }, * "metadata": { * "entityId": "baef3e0b-c3cb-455c-bed4-b139ed0dcc93", * "eventTime": "2024-03-29T08:34:42.018598896Z", * "id": "44b43138-5427-4557-bae3-75f4dd1670d2", * "triggeredByAnonymizeRequest": false * } * } */ ``` ---