// DeleteDoc deletes an existing index.
// default delete table
// delete doc
// https://www.elastic.co/guide/en/elasticsearch/reference/6.5/getting-started-delete-documents.html
DeleteDoc deletes an existing index.
// DeleteDoc deletes an existing index . // default delete table // delete doc // https : // www . elastic . co / guide / en / elasticsearch / reference / 6 . 5 / getting - started - delete - documents . html
func (c *Client) DeleteDoc(id string) *Client {
	if checkIndexName(c) {
		return c
	}
	c.method = "DELETE"
	c.hostDB.Path = path.Join(c.hostDB.Path, "_doc", id)
	return c.exec(c.hostDB.String())
}
func ( c * Client ) DeleteDoc ( id string ) * Client { if checkIndexName ( c ) { return c } c . method = " " c . hostDB . Path = path . Join ( c . hostDB . Path , " " , id ) return c . exec ( c . hostDB . String ( ) ) }
DeleteDoc deletes an existing index.
DeleteDoc deletes an existing index .