> 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: onPostDeleted(event: DeletedPost) # Method package: wixForumBackend # Method menu location: wixForumBackend --> Events --> onPostDeleted # Method Link: https://dev.wix.com/docs/velo/apis/wix-forum-backend/events/on-post-deleted.md # Method Description: A backend event that fires when a forum post is deleted. The `onPostDeleted()` event handler runs when an existing forum post in your site is deleted. The received `DeletedPost` object contains information about the post that was deleted. > **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 forum post is deleted ```javascript // Place this code in a file named events.js // in the Backend section of your code files. export function wixForum_onPostDeleted(event) { const deletedPostId = event.postId; console.log("Post deleted"); } ``` ---