milvus-logo
LFAI
< Docs
  • Python

has_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 drop.StringTrue
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 collection.StringFalse

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?