crashcat docs
    Preparing search index...

    Function destroyContact

    • Destroy a contact: fire onContactRemoved, unlink from its pair chain (O(1)), and return the slot to the free list. No body args, no pool scan, no cache bookkeeping — the pair chain is the only navigation.

      Parameters

      • contacts: Contacts

        global contact state

      • pairs: Pairs

        persistent pair state (holds the per-record chain heads)

      • contact: Contact

        contact to destroy

      • listener: Listener | undefined

        optional contact listener to notify of removal

      Returns void