Search.../

onLabelDeleted( )

Developer Preview

An event that triggers when a label is deleted.

Description

The onLabelDeleted() event handler runs when a label is deleted. The received LabelDeleted object contains metadata.

Note: Backend events don't work when previewing your site.

Syntax

function wixContacts_onLabelDeleted(event: LabelDeleted): void

onLabelDeleted Parameters

NAME
TYPE
DESCRIPTION
event
Optional
LabelDeleted

Metadata for the event.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

An event fired when a label is deleted

Copy Code
1
2// Place this code in the events.js file
3// of your site's Backend section.
4// Add the file if it doesn't exist.
5
6export function wixContacts_onLabelDeleted(event) {
7 console.log('Label deleted', event);
8}
9
10/* Full event object:
11 * {
12 * "metadata": {
13 * "id": "64c54bac-5c9c-42b6-b43b-9143e6814b50",
14 * "entityId": "custom.customer-group-3",
15 * "eventTime": "2024-01-11T12:47:31.862945419Z",
16 * "triggeredByAnonymizeRequest": false
17 * }
18 * }
19 */
20