Skip to content
Oliver Eilhard edited this page Feb 13, 2018 · 2 revisions

The DeleteIndex services allows you to drop an index.

// Delete an index
ctx := context.Background()
deleteIndex, err := client.DeleteIndex("twitter").Do(ctx)
if err != nil {
    // Handle error
    panic(err)
}
if !deleteIndex.Acknowledged {
    // Not acknowledged
}