dropCollection()
This method drops a collection and all data within this specified collection.
Invocation
new milvusClient(MILUVS_ADDRESS).collectionManager.dropCollection(
DropCollectionReq
);
Parameters
DropCollectionReq
Parameter | Description | Type | Required |
---|---|---|---|
collection_name | Name of the collection to drop | String | True |
timeout | An optional duration of time in millisecond to allow for the RPC. Default is undefined | Number | False |
Example
new milvusClient(MILUVS_ADDRESS).collectionManager.dropCollection({
collection_name: "my_collection",
});
Return
// dropCollection return
{ error_code: 'Success', reason: '' }