func (s *DeleteScriptService) buildURL() (string, string, url.Values, error) {
	var (
		err    error
		method = "DELETE"
		path   string
	)
	path, err = uritemplates.Expand("/_scripts/{id}", map[string]string{
		"id": s.id,
	})
	if err != nil {
		return "", "", url.Values{}, err
	}
	params := url.Values{}
	if v := s.pretty; v != nil {
		params.Set("pretty", fmt.Sprint(*v))
	}
	if v := s.human; v != nil {
		params.Set("human", fmt.Sprint(*v))
	}
	if v := s.errorTrace; v != nil {
		params.Set("error_trace", fmt.Sprint(*v))
	}
	if len(s.filterPath) > 0 {
		params.Set("filter_path", strings.Join(s.filterPath, ","))
	}
	if s.timeout != "" {
		params.Set("timeout", s.timeout)
	}
	if s.masterTimeout != "" {
		params.Set("master_timestamp", s.masterTimeout)
	}
	return method, path, params, nil
}
buildURL builds the URL for the operation.
package elastic
import (
	"context"
	"fmt"
	"net/http"
	"net/url"
	"strings"
	"github.com/olivere/elastic/v7/uritemplates"
)
type DeleteScriptService struct {
	client *Client
	pretty     *bool        
	human      *bool        
	errorTrace *bool        
	filterPath []string     
	headers    http.Header  
	id            string
	timeout       string
	masterTimeout string
}
func NewDeleteScriptService(client *Client) *DeleteScriptService {
	return &DeleteScriptService{
		client: client,
	}
}
func (s *DeleteScriptService) Pretty(pretty bool) *DeleteScriptService {
	s.pretty = &pretty
	return s
}
func (s *DeleteScriptService) Human(human bool) *DeleteScriptService {
	s.human = &human
	return s
}
func (s *DeleteScriptService) ErrorTrace(errorTrace bool) *DeleteScriptService {
	s.errorTrace = &errorTrace
	return s
}
func (s *DeleteScriptService) FilterPath(filterPath ...string) *DeleteScriptService {
	s.filterPath = filterPath
	return s
}
func (s *DeleteScriptService) Header(name string, value string) *DeleteScriptService {
	if s.headers == nil {
		s.headers = http.Header{}
	}
	s.headers.Add(name, value)
	return s
}
func (s *DeleteScriptService) Headers(headers http.Header) *DeleteScriptService {
	s.headers = headers
	return s
}
func (s *DeleteScriptService) Id(id string) *DeleteScriptService {
	s.id = id
	return s
}
func (s *DeleteScriptService) Timeout(timeout string) *DeleteScriptService {
	s.timeout = timeout
	return s
}
func (s *DeleteScriptService) MasterTimeout(masterTimeout string) *DeleteScriptService {
	s.masterTimeout = masterTimeout
	return s
}