milvus-logo
LFAI
< Docs
  • Node

dropPartition()

This method drops a partition and all data within this partition. Note that the _default partition cannot be dropped.

Invocation

new milvusClient(MILUVS_ADDRESS).partitionManager.dropPartition(
  DropPartitionReq
);

Parameters

DropPartitionReq

ParameterDescriptionTypeRequired
collection_nameName of the collection in which to drop the partitionStringTrue
partition_nameName of the partition to dropStringTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

new milvusClient(MILUVS_ADDRESS).partitionManager.dropPartition({
  collection_name: "my_collection",
  partition_name: "my_partition",
});

Return

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

Was this page helpful?