Delete

Deletes an entire index from Kuzzle.

Arguments

Copied to clipboard!
Delete(index string, options types.QueryOptions) error
Arguments Type Description
index
string
Index name
options
QueryOptions
Query options

Options

Additional query options

Option Type Description Default
queuable
bool
Make this request queuable or not true

Return

Returns an error or nil if the request succeed.

Usage

Copied to clipboard!
err := kuzzle.Index.Delete("nyc-open-data", nil)

if err != nil {
  log.Fatal(err)
} else {
  fmt.Println("index deleted")
}