This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
function onSectionDeleted(handler: function): void;
handler(event: SectionDeletedEnvelope): void | Promise<void>
import { sections } from "@wix/restaurants";
sections.onSectionDeleted((event) => {
// handle your event here
});