> 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: onContactDeleted(event: ContactDeleted) # Method package: wixCrmV2 # Method menu location: wixCrmV2 --> onContactDeleted # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/crm/events/on-contact-deleted.md # Method Description: Triggered when a contact is deleted. If a contact is deleted as part of a merge, the `originatedFrom` property is sent as `merge`. Otherwise, `originatedFrom` isn't returned. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event fired when a contact 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 wixCrm_onContactDeleted(event) { const contactId = event.metadata.entityId; console.log('Contact deleted', event); } /* Full event object: * { * "metadata": { * "id": "e252a78d-bd95-4aa2-b65f-91730da186fa", * "entityId": "custom.customer-group-3", * "eventTime": "2024-01-11T12:47:31.862945419Z", * "triggeredByAnonymizeRequest": false * } * } */ ``` ---