milvus-logo
LFAI
< Docs

delete_user()

This operation deletes an existing user.

Request Syntax

delete_user(
    user: str,
    password: str,
    using: str,
    timeout: float | None
)

PARAMETERS:

  • user (string) -

    [REQUIRED]

    The name of the new user to delete.

  • password (string) -

    [REQUIRED]

    The corresponding password to the new user to create.

    Setting this to an incorrect password results in a MilvusException.

  • using (string) -

    The alias of the employed connection.

    The default value is default, indicating that this operation employs the default connection.

  • timeout (float | None)

    The timeout duration for this operation. Setting this to None indicates that this operation timeouts when any response arrives or any error occurs.

RETURN TYPE:

NoneType

RETURNS:

None

EXCEPTIONS:

  • MilvusException

    This exception will be raised when any error occurs during this operation.

Examples

from pymilvus import connections, utility

# Connection to localhost:19530
connections.connect()

# Delete an existing user
user = utility.delete_user(user="admin", password="123456")

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?