public function delete_service($service_id)
{
$options = get_option('sharing-options');
if (isset($options[$service_id])) {
unset($options[$service_id]);
}
$key = array_search($service_id, $options['global']['custom']);
if ($key !== false) {
unset($options['global']['custom'][$key]);
}
update_option('sharing-options', $options);
return true;
}