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

Was this page helpful?