SDK
SDK Javascript v7.x
2

# delete

Deletes a collection.


Copied to clipboard!
delete(index, collection);

Arguments Type Description
index
string
Index name
collection
string
Collection name

# Resolves

Resolves if the collection is successfully deleted.

# Usage

Copied to clipboard!
try {
  await kuzzle.collection.delete('nyc-open-data', 'yellow-taxi');
  console.log('Success');
} catch (error) {
  console.error(error.message);
}