milvus-logo
LFAI
< Docs
  • Python
    • MilvusClient

close()

This operation closes the current Milvus client.

Request syntax

close() -> None

PARAMETERS:

None

RETURN TYPE:

NoneType

RETURNS:

None

Exceptions:

None

Examples

from pymilvus import MilvusClient

# 1. Set up a milvus client
client = MilvusClient(
    uri="http://localhost:19530",
    token="root:Milvus"
)

# 2. Close the client
client.close()

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?