client.go
func (c *Client) DeleteIndex(index *Index) error {
	span := c.tracer.StartSpan("Client.DeleteIndex")
	defer span.Finish()

	path := fmt.Sprintf("/index/%s", index.name)
	_, _, err := c.httpRequest("DELETE", path, nil, nil, false)
	return err

}
func (c *Client) DeleteIndex(index *Index) error {
	span := c.tracer.StartSpan("Client.DeleteIndex")
	defer span.Finish()

	path := fmt.Sprintf("/index/%s", index.name)
	_, _, err := c.httpRequest("DELETE", path, nil, nil, false)
	return err

}
func ( c * Client ) DeleteIndex ( index * Index ) error { span := c . tracer . StartSpan ( " " ) defer span . Finish ( ) path := fmt . Sprintf ( " " , index . name ) _ , _ , err := c . httpRequest ( " " , path , nil , nil , false ) return err }
// DeleteIndex deletes an index on the server.
DeleteIndex deletes an index on the server .