W034: Delete contact
Removes a contact and detaches it from every entity it was linked to. Triggered from a contact edit modal.
Steps
-
Load the contact. Call
Contacts.getContactById. -
Delete the contact. Call
Contacts.deleteContact. Methods and entity links cascade away at the DB layer.
Returns
Nothing.
Business rules
- Cascading effect. Deleting a contact removes it from every customer, vendor, or other entity that was linked to it.
Errors
NotFoundError. The contact was not found.