Deprecated. This function will continue to work, but a newer version is available at wix-crm-backend.contacts.deleteContact().
Deletes an existing contact.
If this function is already in your code, it will continue to work.
To stay compatible with future changes, migrate to
wix-crm-backend.contacts.deleteContact()
.
To migrate to the new function:
Add the new import statement:
If you plan to migrate all contact functions that use wixCrmBackend
,
remove the original import wixCrmBackend
statement.
Look for any code that uses wixCrmBackend.deleteContact()
,
and replace it with contacts.deleteContact()
.
Update your code to work with the new deleteContact()
call and response properties.
Test your changes to make sure your code behaves as expected.
The deleteContact()
function returns a Promise that resolves when the
contact with the given ID is deleted.
The ID of the contact to delete.
Options to use when deleting the contact.