Search...
onEventDeleted( )
An event that's triggered when a Wix Event is deleted.
Description
The onEventDeleted()
event handler runs when a Wix Event is deleted. The received EventDeleted
object contains information about the Wix Event that was deleted and metadata for the event.
Note: Backend events are not fired when previewing your site.
Syntax
function wixEvents_onEventDeleted(event: EventDeleted): void
onEventDeleted Parameters
NAME
TYPE
DESCRIPTION
event
Optional
EventDeleted
Information about the Wix Event that was deleted and metadata for the event.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
onEventDeleted example
Copy Code
12 export function wixEvents_onEventDeleted(event) {3 const eventId = event.metadata.id4 const entityId = event.entity._id;5 }67