delete #
Deletes a collection.
Delete(index string, collection string, options types.QueryOptions) (json.RawMessage, error)
Arguments | Type | Description |
---|---|---|
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")
}
Edit this page on Github(opens new window)