🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

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
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

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

Return

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

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?