🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

milvus-logo
LFAI
< Docs

drop_collection()

This method drops a collection and the data within.

Invocation

drop_collection(collection_name, timeout=None, using='default')

Parameters

ParameterDescriptionTypeRequired
collection_nameName of the collection to dropStringTrue
timeoutAn optional duration of time in seconds to allow for the RPC. If it is set to None, the client keeps waiting until the server responds or error occurs.FloatFalse
usingMilvus Connection used to drop the collectionStringFalse

Return

No return.

Example

from pymilvus import utility
utility.drop_collection("book")

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?