Skip to main content

Drop Collection

You can drop a collection if it is no longer needed.

📘Notes

Unlike dropping a managed collection, which removes both the collection and the data, dropping an external collection only removes the collection and keeps the data intact.

Examples​

The following code snippets assume that you have a collection named my_collection.

python
from pymilvus import MilvusClient

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

client.drop_collection(
collection_name="my_collection"
)
Was this page helpful?