milvus-logo

releasePartitions()

This method releases the specified partition from memory.

Invocation

new milvusClient(MILUVS_ADDRESS).partitionManager.releasePartitions(
  ReleasePartitionsReq
);

Parameters

ReleasePartitionsReq

ParameterDescriptionTypeRequired
collection_nameName of the collection in which the partition to release existsStringTrue
partition_namesAn array of the name of the partitions to releaseString arrayTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

new milvusClient(MILUVS_ADDRESS).partitionManager.releasePartitions({
  collection_name: "my_collection",
  partition_names: ["my_partition"],
});

Return

{ error_code: 'Success', reason: '' }