Triggered when a staff member is deleted.
function onStaffMemberDeleted(handler: function): void;
handler(event: StaffMemberDeletedEnvelope): void | Promise<void>
import { staffMembers } from "@wix/events";
staffMembers.onStaffMemberDeleted((event) => {
// handle your event here
});