Skip to main content
Version: v1.0.0(int)

W034: Delete contact

Removes a contact and detaches it from every entity it was linked to. Triggered from a contact edit modal.

Steps

  1. Load the contact. Call Contacts.getContactById.

  2. 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.