I may be blind but I can't see any api call to delete a custom value?!
CustomValue entity is missing a delete action.
What am I missing?
If you have the ID of the row you want to delete and the custom group ID you can use
$dao = CRM_Core_BAO_CustomGroup::class; $groupID = CRM_Core_DAO::getFieldValue($dao, 'Emergency_Contacts', 'id', 'name'); CRM_Core_BAO_CustomValue::deleteCustomValue($id, $groupID);
Which deletes an entire row from the custom value table for this custom group.
API delete option for Custom value is missing in this version Please upgrade your Civicrm version to the latest version of Civicrm
please give a quick test http://d46.demo.civicrm.org/civicrm/api/explorer#explorer where you will find the delete action