deleteMemberPhones( )


Deprecated. This function will continue to work, but a newer version is available at deleteMemberPhones().

Clears a member's phone numbers.

The deleteMemberPhones() function returns a Promise that resolves to a member object when the specified member's phone numbers are cleared.

deleteMemberPhones() deletes all phone numbers from the contactDetails.phones array, which affects both the specified member and the attached contact.

Migration Instructions

If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to deleteMemberPhones().

To migrate to the new function:

  1. Add the new import statement:

    Copy
  2. Test your changes to make sure your code behaves as expected.

Method Declaration
Copy
Method Parameters
idstringRequired

ID of the member whose phone numbers will be deleted.

Returns
Return Type:Promise<Member>
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?