> 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: onTagDeleted(event: TagDeleted) # Method package: wixBlogBackend # Method menu location: wixBlogBackend --> onTagDeleted # Method Link: https://dev.wix.com/docs/velo/apis/wix-blog-backend/events/on-tag-deleted.md # Method Description: An event that is triggered when a tag is deleted. The `onTagDeleted()` event handler runs when a tag is deleted. The received `TagDeleted` object contains event metadata. >**Note:** Backend events don't work when previewing your site. # 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 tag 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 wixBlog_onTagDeleted(event) { const categoryId = event.metadata.entityId; const deletedTagTime = event.metadata.eventTime; console.log('Tag deleted', event); } /* * { * "metadata":{ * "id":"4c9f5d4d-743d-4e59-9627-b95c1d8f424b", * "entityId":"371f53b4-b965-476b-9e51-30095c1a1a91", * "eventTime":"2022-06-16T15:22:49.242Z", * "triggeredByAnonymizeRequest":false * } * } */ ``` ---