onSectionDeleted( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:
Permissions
Manage Bookings Services and Settings
Manage Events
Manage Portfolio
Access Verticals by Automations
Set Up Automations
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function onSectionDeleted(handler: function): void;
Method Parameters
handlerfunction

handler(event: SectionDeletedEnvelope): void | Promise<void>

JavaScript
import { sections } from "@wix/restaurants"; sections.onSectionDeleted((event) => { // handle your event here });
Did this help?