SDK
SDK Golang v1.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.

mDelete #

Deletes multiple indexes at once.

Arguments #

Copied to clipboard!
MDelete(indexes []string, options types.QueryOptions) ([]string, error)
Arguments Type Description
indexes
Array
An array of strings containing indexes names.
options
QueryOptions
Query options

Options #

Additional query options

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

Return #

Returns an Array of strings containing the list of indexes names deleted or an error

Usage #

Copied to clipboard!
indexes := []string{"nyc-open-data", "mtp-open-data"}
deleted, err := kuzzle.Index.MDelete(indexes, nil)
if err != nil {
  log.Fatal(err)
} else {
  fmt.Printf("Successfully deleted %d indexes", len(deleted))
}