onContactDeleted( )


An event that triggers when a contact is deleted.

The onContactDeleted() event handler runs when a contact is deleted. The received ContactDeletedEvent object contains event metadata.

If a contact is deleted as part of a merge, metadata.originatedFrom is sent as "merge". Otherwise, originatedFrom is omitted.

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

Method Declaration
Copy
Method Parameters
eventContactDeletedEventRequired

Metadata for the event.

Did this help?