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")
Feedback

Was this page helpful?