> 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: onLocationArchiveStatus(event: LocationArchiveStatus) # Method package: wixBusinessToolsV2 # Method menu location: wixBusinessToolsV2 --> onLocationArchiveStatus # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/business-tools/events/on-location-archive-status.md # Method Description: Triggered when a location is archived. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event that triggers when a location is archived ```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 wixLocations_onLocationArchiveStatus(event) { const archivedTime = event.metadata.eventTime; console.log(`Location was archived at ${archivedTime}. Event details:`, event) } /* Full event object: * { * "data": { * "_id": "489d0ea1-9eb4-4215-9616-98e297c7337e" * }, * "metadata": { * "entityId": "489d0ea1-9eb4-4215-9616-98e297c7337e", * "eventTime": "2023-11-13T08:00:47.696025Z", * "id": "a92d9e8b-abd7-4903-a954-5a6848f6f4eb", * "triggeredByAnonymizeRequest": false * } * } */ ``` ---