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

Milvus
Zilliz
< Docs
  • Go

DropIndex()

This method drops the specified index.

func (c *Client) DropIndex(ctx context.Context, opt DropIndexOption, 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.

DropIndexOption

callOpts

Optional parameters for calling the methods.

grpc.CallOption

DropIndexOption

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

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

NewDropIndexOption()

The signature of this method is as follows:

func NewDropIndexOption(collectionName string, indexName string) *dropIndexOption

Parameter

Description

Type

collectionName

Name of the target collection.

string

indexName

Name of the target index.

string

Return

Null

Example

err = cli.DropIndex(ctx, milvusclient.NewDropIndexOption("my_collection", "my_index"))
if err != nil {
    // handle err
}

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?