We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The Delete service removes a document from an index.
Delete
// Delete tweet with specified ID ctx := context.Background() res, err := client.Delete(). Index("twitter"). Type("tweet"). Id("1"). Do(ctx) if err != nil { // Handle error panic(err) } if res.Found { fmt.Print("Document deleted from from index\n") }
Notice that ES 7.x deprecated types, and they're very possibly being removed in ES 8.x.