Deprecated. This function will continue to work, but a newer version is available at deleteMemberAddresses().
Deletes a member's street addresses.
The deleteMemberAddresses()
function returns a Promise that resolves to a member object
when the specified member's addresses are cleared.
If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to deleteMemberAddresses().
To migrate to the new function:
Add the new import statement:
Test your changes to make sure your code behaves as expected.
deleteMemberAddresses()
deletes all addresses in the contactDetails.addresses
array,
which affects both the specified member and the attached contact.
ID of the member whose street addresses will be deleted.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.