メインコンテンツまでスキップ
バージョン: User Guides (Cloud)

コレクションの削除

不要になったコレクションは削除できます。

以下のコードスニペットでは、my_collectionという名前のコレクションが存在すると仮定しています。

from pymilvus import MilvusClient

client = MilvusClient(
uri="YOUR_CLUSTER_ENDPOINT",
token="YOUR_CLUSTER_TOKEN"
)

client.drop_collection(
collection_name="my_collection"
)