SDK
SDK Golang v2.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

Delete #

Deletes an entire index from Kuzzle.

Arguments #

Delete(index string, options types.QueryOptions) error
ArgumentsTypeDescription
index
string
Index name
options
QueryOptions
Query options

Options #

Additional query options

OptionTypeDescriptionDefault
queuable
bool
Make this request queuable or nottrue

Return #

Returns an error or nil if the request succeed.

Usage #

err := kuzzle.Index.Delete("nyc-open-data", nil)
if err != nil {
  log.Fatal(err)
} else {
  fmt.Println("index deleted")
}