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?
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.Sign up to join this community
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