milvus-logo
LFAI
< Docs
  • Node

dropCollection()

This method drops a collection and all data within this specified collection.

Invocation

new milvusClient(MILUVS_ADDRESS).collectionManager.dropCollection(DropCollectionReq);

Parameters

DropCollectionReq

ParameterDescriptionTypeRequired
collection_nameName of the collection to dropStringTrue

Example

new milvusClient(MILUVS_ADDRESS).collectionManager.dropCollection({
  collection_name: 'my_collection',
});

Return

// dropCollection return
{ error_code: 'Success', reason: '' }
Feedback

Was this page helpful?