> 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: onOrderDeleted(event: OrderDeletedEvent) # Method package: wixEventsBackend # Method menu location: wixEventsBackend --> Events --> onOrderDeleted # Method Link: https://dev.wix.com/docs/velo/apis/wix-events-backend/events/on-order-deleted.md # Method Description: A backend event that fires when a ticket order is deleted. The `onOrderDeleted()` event handler runs when a ticket order is deleted. The received `OrderDeletedEvent` object contains information about the deleted order. > **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 ticket order 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 wixEvents_onOrderDeleted(event) { let eventId = event.eventId; let orderNumber = event.orderNumber; } /* Full event object: * { * "timestamp": "2020-04-28T12:24:29.768Z", * "eventId": "566e7be9-1410-4095-ae7a-349a4ac95c6b", * "orderNumber": "FMXC-BZG3-OT", * "contactId": "eea3ac0f-f9e6-4ed3-a135-99743c8e90b8", * "memberId": "b272b0bb-d013-415a-8461-e8a175fe8dc6", * "anonymized": true, * "orderType": "ASSIGNED_TICKETS" * } */ ``` ---