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()
: