> 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: onGuestDeleted(event: GuestDeleted) # Method package: wixEventsV2 # Method menu location: wixEventsV2 --> onGuestDeleted # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/wix-events/events/on-guest-deleted.md # Method Description: A backend event that fires when a Guest is deleted. The `onGuestDeleted()` event handler runs when a Guest is deleted from your site. The received `GuestDeleted` object contains information about the deleted guest. > **Note**: Backend events are not fired when previewing your site. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## A backend event that occurs when a guest is deleted ```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 wixEventsGuests_onGuestDeleted(event) { const eventId = event.metadata.id const entityId = event.entity._id; } /* Full guest object: { "metadata": { "id": "f9325e7a-1875-424f-8fdb-83edb03a4f7a", "entityId": "984476a1-8a92-455a-863c-bf1efc816f7e", "eventTime": "2023-04-19T13:23:04.892039Z", "triggeredByAnonymizeRequest": false } } */ ``` ---