> 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: removeFromTrashBin(draftPostId: string) # Method package: wixBlogBackend # Method menu location: wixBlogBackend --> draftPosts --> removeFromTrashBin # Method Link: https://dev.wix.com/docs/velo/apis/wix-blog-backend/draft-posts/remove-from-trash-bin.md # Method Description: Permanently deletes a draft post by the provided ID from the trash bin. Uses the provided `draftPostId` to permanently delete a draft post from the trash bin. This action is permanent and cannot be reversed. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Permanently delete a draft post (export from backend code) ```javascript import { draftPosts } from 'wix-blog-backend'; import { webMethod, Permissions } from 'wix-web-module'; // Sample draftPostId value: "dd0907fa-ca4b-4fe4-ab9e-625e4733691e" export const myRemoveFromTrashBinFunction = webMethod( Permissions.Admin, async (draftPostId) => { try { await draftPosts.removeFromTrashBin(draftPostId); console.log('Permanently deleted the following draft post:', draftPostId); return; } catch (error) { console.error(error); // Handle the error } } ); // Promise returns void ``` ## Permanently delete a draft post ```javascript import { draftPosts } from 'wix-blog-backend'; // Sample draftPostId value: "dd0907fa-ca4b-4fe4-ab9e-625e4733691e" export async function myRemoveFromTrashBinFunction(draftPostId) { try { await draftPosts.removeFromTrashBin(draftPostId); console.log('Permanently deleted the following draft post:', draftPostId); return; } catch (error) { console.error(error); // Handle the error } } // Promise returns void ``` ---