milvus-logo
LFAI
< Docs
  • Python

remove_connection()

This operation removes the connection from the registry by the given alias and disconnects if connected.

Request Syntax

remove_connection(alias: str)

PARAMETERS:

  • alias (string) -

    [REQUIRED]

    A connection alias

RETURN TYPE:

NoneType

RETURNS:

None

EXCEPTIONS:

  • ConnectionConfigException

    This exception will be raised when the connection configuration is invalid.

Examples

from pymilvus import connections

connections.remove_connection(alias="default")

Related operations

The following operations are related to remove_connection():

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?