This topic describes how to drop a partition in a specified collection.
- You have to release the partition before you drop it.
- Dropping a partition irreversibly deletes all data within it.
from pymilvus import Collection
collection.drop_partition("novel")
await milvusClient.dropPartition({
collection_name: "book",
partition_name: "novel",
});
err := milvusClient.DropPartition(
context.Background(),
"book",
"novel",
)
if err != nil {
log.Fatal("fail to drop partition:", err.Error())
}
milvusClient.dropPartition(
DropPartitionParam.newBuilder()
.withCollectionName("book")
.withPartitionName("novel")
.build()
);
await milvusClient.GetCollection("book").DropPartitionsAsync("novel");
Parameter |
Description |
partition_name |
Name of the partition to drop. |
Parameter |
Description |
collection_name |
Name of the collection to drop partition from. |
partition_name |
Name of the partition to drop. |
Parameter |
Description |
ctx |
Context to control API invocation process. |
CollectionName |
Name of the collection to drop a partition in. |
partitionName |
Name of the partition to drop. |
Parameter |
Description |
CollectionName |
Name of the collection to drop a partition in. |
PartitionName |
Name of the partition to drop. |
Parameter |
Description |
collectionName |
Name of the collection to drop partition from. |
partitionName |
Name of the partition to drop. |
- Learn more basic operations of Milvus: