SDK
SDK Golang v3.x
2

mDelete #

Deletes multiple indexes at once.

Arguments #

MDelete(indexes []string, options types.QueryOptions) ([]string, error)
ArgumentsTypeDescription
indexes
Array
An array of strings containing indexes names.
options
QueryOptions
Query options

Options #

Additional query options

OptionTypeDescriptionDefault
queuable
bool
Make this request queuable or nottrue

Return #

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

Usage #

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))
}