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

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

Example

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

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?