> 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: onCategoryDeleted(event: CategoryDeleted) # Method package: wixBlogBackend # Method menu location: wixBlogBackend --> onCategoryDeleted # Method Link: https://dev.wix.com/docs/velo/apis/wix-blog-backend/events/on-category-deleted.md # Method Description: Triggered when a category is deleted. # 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 category 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_onCategoryDeleted(event) { const categoryId = event.metadata.entityId; const deletedCategoryTime = event.metadata.eventTime; console.log('Category deleted', event); } /* * { * "metadata":{ * "id":"68dbe814-7280-44ef-a9dc-d32243ad3990", * "entityId":"62ab47e67bb78adfe3e75199", * "eventTime":"2022-06-16T15:14:15.762Z", * "triggeredByAnonymizeRequest":false * } * } */ ``` ---