This topic describes how to drop an index in Milvus.
Dropping an index irreversibly removes all corresponding index files.
from pymilvus import Collection
collection = Collection("book")
collection.drop_index()
await milvusClient.indexManager.dropIndex({
collection_name: "book",
});
err = milvusClient.DropIndex(
context.Background(),
"book",
"book_intro",
)
if err != nil {
log.Fatal("fail to drop index:", err.Error())
}
milvusClient.dropIndex(
DropIndexParam.newBuilder()
.withCollectionName("book")
.withFieldName("book_intro")
.build()
);
delete index -c book
Parameter |
Description |
collection_name |
Name of the collection to drop index from. |
Parameter |
Description |
ctx |
Context to control API invocation process. |
CollectionName |
Name of the collection to drop index on. |
fieldName |
Name of the vector field to drop index on. |
Parameter |
Description |
CollectionName |
Name of the collection to drop index on. |
FieldName |
Name of the vector field to drop index on. |
Option |
Description |
-c |
Name of the collection to drop index from. |
- Learn more basic operations of Milvus: