/**
 * Slot.Delete API
 *
 * @param array $params
 * @return array API result descriptor
 * @see civicrm_api3_create_success
 * @see civicrm_api3_create_error
 * @throws API_Exception
 */
function civicrm_api3_adhoc_charges_delete($params)
{
    if (CRM_Booking_BAO_AdhocCharges::del($params['id'])) {
        return civicrm_api3_create_success($params, $params, 'AdhocCharges', 'delete');
    } else {
        return civicrm_api3_create_error('Could not delete adhoc charges.');
    }
}