milvus-logo
LFAI
< Docs
  • Python

drop_database()

This method drops a database. Ensure the database to drop exists.

Invocation

drop_database(db_name, using="default", timeout=None)

Parameters

ParametersDescriptionTypeRequired
db_nameName of the data to be created.StringTrue
usingAlias of a connectionStringFalse
timetoutTimeout duration of this operationIntegerFalse

Returns

No returns

Examples

from pymilvus import connections, db

conn = connections.connect(host="127.0.0.1", port=19530)

db.drop_database("books")