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

Milvus
Zilliz
< Docs
  • Go

DropPartition()

This method creates a partition in a collection.

func (c *Client) DropPartition(ctx context.Context, opt DropPartitionOption, callOptions ...grpc.CallOption) error

Request Parameters

Parameter

Description

Type

ctx

Context for the current call to work.

context.Context

opt

Optional parameters of the methods.

DropAliasOption

callOptions

Optional parameters for calling the methods.

grpc.CallOption

DropPartitionOption

This is an interface type. The dropPartitionOption struct type implements this interface type.

You can use the NewDropPartitionOption() function to get the concrete implementation.

NewDropPartitionOption

The signature of this method is as follows:

func NewDropPartitionOption(collectionName string, partitionName string) *dropPartitionOpt

Parameter

Description

Type

collectionName

Name of the target collection.

string

partitionName

Name of the partition to drop.

string

Return

Null

Example

import (
    "context"
    "github.com/milvus-io/milvus/client/v2/milvusclient"
)

err = cli.DropPartition(ctx, milvusclient.NewDropPartitionOption("quick_setup", "partitionA"))
if err != nil {
    // handle error
}

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?