func (s *DeleteService) Index(index string) *DeleteService {
	s.index = index
	return s
}
Index is the name of the index.
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
}