This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
An existing post was removed.
function onPostDeleted(handler: function): void;
handler(event: PostDeletedEnvelope): void | Promise<void>
import { posts } from "@wix/forum";
posts.onPostDeleted((event) => {
// handle your event here
});