milvus-logo

releaseCollection()

This method releases the specified collection from memory.

Invocation

new milvusClient(MILUVS_ADDRESS).collectionManager.releaseCollection(
  ReleaseCollectionReq
);

Parameters

ReleaseCollectionReq

ParameterDescriptionTypeRequired
collection_nameName of the collection to releaseStringTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

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

Return

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