@wppconnect/wa-js - v3.19.3
    Preparing search index...

    Function deleteContactActionV2

    • Deletes a contact from the contact list.

      Parameters

      • params: { lid?: string; phoneNumber?: Wid; username?: string }

        Object with contact identifiers

        • Optionallid?: string

          Contact LID (for username contacts)

        • OptionalphoneNumber?: Wid

          Contact phone number as Wid (for regular contacts)

        • Optionalusername?: string

          Contact username (for username contacts)

      Returns Promise<void>

      WAWebDeleteContactAction >= 2.3000.1030110621

      // Delete regular contact by phone number
      await deleteContactActionV2({ phoneNumber: wid });

      // Delete username contact
      await deleteContactActionV2({ username: 'john', lid: '123' });