@wppconnect-team/wppconnect - v1.37.8
    Preparing search index...

    Function deleteContactAction

    • Deletes a contact from the contact list (legacy API).

      Parameters

      • number: string

        Phone number string

      Returns Promise<void>

      WAWebDeleteContactAction >= 2.3000.0

      ~2.3000.1030040369

      Since around WhatsApp version 2.3000.1030110621. Use the new object-based API instead. Use deleteContactActionV2({ phoneNumber: wid }) for regular contacts or deleteContactActionV2({ username, lid }) for username contacts.

      // Deprecated usage
      await deleteContactAction('5511999999999');

      // Use this instead
      await deleteContactActionV2({ phoneNumber: wid });