onLabelDeleted( )


Triggered when a label is deleted.

Method Declaration
Copy
function wixContacts_onLabelDeleted(event: LabelDeleted): void;
Method Parameters
eventLabelDeleted

Metadata for the event.

An event fired when a label is deleted
JavaScript
// Place this code in the events.js file // of your site's Backend section. // Add the file if it doesn't exist. export function wixContacts_onLabelDeleted(event) { console.log("Label deleted", event); } /* Full event object: * { * "metadata": { * "id": "64c54bac-5c9c-42b6-b43b-9143e6814b50", * "entityId": "custom.customer-group-3", * "eventTime": "2024-01-11T12:47:31.862945419Z", * "triggeredByAnonymizeRequest": false * } * } */
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?