func (s *DeleteService) Refresh(refresh bool) *DeleteService {
	s.refresh = &refresh
	return s
}
Refresh the index after performing the operation.
package elastic
import (
	"fmt"
	"net/url"
	"gopkg.in/olivere/elastic.v3/uritemplates"
)
type DeleteService struct {
	client      *Client
	pretty      bool
	id          string
	index       string
	typ         string
	routing     string
	timeout     string
	version     interface{}
	versionType string
	consistency string
	parent      string
	refresh     *bool
	replication string
}
func NewDeleteService(client *Client) *DeleteService {
	return &DeleteService{
		client: client,
	}
}
func (s *DeleteService) Type(typ string) *DeleteService {
	s.typ = typ
	return s
}
func (s *DeleteService) Id(id string) *DeleteService {
	s.id = id
	return s
}
func (s *DeleteService) Index(index string) *DeleteService {
	s.index = index
	return s
}
func (s *DeleteService) Replication(replication string) *DeleteService {
	s.replication = replication
	return s
}
func (s *DeleteService) Routing(routing string) *DeleteService {
	s.routing = routing
	return s
}
func (s *DeleteService) Timeout(timeout string) *DeleteService {
	s.timeout = timeout
	return s
}
func (s *DeleteService) Version(version interface{}) *DeleteService {
	s.version = version
	return s
}
func (s *DeleteService) VersionType(versionType string) *DeleteService {
	s.versionType = versionType
	return s
}
func (s *DeleteService) Consistency(consistency string) *DeleteService {
	s.consistency = consistency
	return s
}
func (s *DeleteService) Parent(parent string) *DeleteService {
	s.parent = parent
	return s
}