SDK
SDK Golang v3.x
2

delete #

Deletes a collection.


Delete(index string, collection string, options types.QueryOptions) (json.RawMessage, error)

ArgumentsTypeDescription
index
string
Index name
collection
string
Collection name
options
QueryOptions
Query options

Resolves #

Resolves if the collection is successfully deleted.

Usage #

err := kuzzle.Collection.Delete("nyc-open-data", "yellow-taxi", nil)
if err != nil {
  log.Fatal(err)
} else {
  fmt.Println("Success")
}