Triggered when a contact is deleted.
If a contact is deleted as part of a merge, the originatedFrom
property is sent as merge
.
Otherwise, originatedFrom
isn't returned.
function onContactDeleted(handler: function): void;
handler(event: ContactDeletedEnvelope): void | Promise<void>
import { contacts } from "@wix/crm";
contacts.onContactDeleted((event) => {
// handle your event here
});