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.
function removeFromTrashBin(draftPostId: string): Promise<void>;
Draft post ID.
import { draftPosts } from "@wix/blog";
async function removeFromTrashBin(draftPostId) {
const response = await draftPosts.removeFromTrashBin(draftPostId);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.