Deletes a contact from the contact list (legacy API).
Phone number string
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.
deleteContactActionV2({ phoneNumber: wid })
deleteContactActionV2({ username, lid })
// Deprecated usageawait deleteContactAction('5511999999999');// Use this insteadawait deleteContactActionV2({ phoneNumber: wid }); Copy
// Deprecated usageawait deleteContactAction('5511999999999');// Use this insteadawait deleteContactActionV2({ phoneNumber: wid });
Deletes a contact from the contact list (legacy API).