.. versionadded:: Fluorine

    Delete service specified by id.

    .. note::
        https://www.zabbix.com/documentation/3.4/manual/api/reference/service/delete

    :param service_id: ID of service which should be deleted

    .. note::
        Service can't be deleted if it has any children.

    :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
    :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
    :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

    :return: ID of deleted service, False if service could not be deleted or on failure.

    CLI Example:
    .. code-block:: bash

        salt '*' zabbix.service_delete 10

def service_delete(service_id=None, **kwargs):
    '''
    .. versionadded:: Fluorine

    Delete service specified by id.

    .. note::
        https://www.zabbix.com/documentation/3.4/manual/api/reference/service/delete

    :param service_id: ID of service which should be deleted

    .. note::
        Service can't be deleted if it has any children.

    :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
    :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
    :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

    :return: ID of deleted service, False if service could not be deleted or on failure.

    CLI Example:
    .. code-block:: bash

        salt '*' zabbix.service_delete 10
    '''

    conn_args = _login(**kwargs)
    ret = {}
    try:
        if conn_args:
            method = 'service.delete'
            if not service_id:
                return {'result': False, 'comment': 'service_id param is required'}
            params = [str(service_id)]
            ret = _query(method, params, conn_args['url'], conn_args['auth'])
            return ret['result'] if ret['result'] else False
        else:
            raise KeyError
    except KeyError:
        return ret