milvus-logo
Star
0
Forks
0
快速开始

Drop Partitions

Milvus Docs 需要你的帮助

本文档暂时没有中文版本,欢迎你成为社区贡献者,协助中文技术文档的翻译。
你可以通过页面右边的 编辑 按钮直接贡献你的翻译。更多详情,参考 贡献指南。如需帮助,你可以 提交 GitHub Issue

This topic describes how to drop a partition in a specified collection.

Dropping a partition irreversibly deletes all data within it.
from pymilvus import Collection
collection.drop_partition("novel")
await milvusClient.partitionManager.dropPartition({
  collection_name: "book",
  partition_name: "novel",
});
err := milvusClient.DropPartition(
    context.Background(),   // ctx
    "book",                 // CollectionName
    "novel",                // partitionName
    )
if err != nil {
    log.Fatal("fail to drop partition:", err.Error())
}
milvusClient.dropPartition(
        DropPartitionParam.newBuilder()
                .withCollectionName("book")
                .withPartitionName("novel")
                .build());
delete partition -c book -p 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.
Option Description
-c Name of the collection to drop partition from.
-p Name of the partition to drop.

What's next

该页面是否对你有帮助?
本页目录