milvus-logo
LFAI
< Docs

delete_user()

This method deletes a specified user. This operation is irriversable. Therefore, exercise caution when performing this operation.

Invocation

delete_user(user, using="default")

Parameters

ParameterDescriptionTypeRequired
userName of the user to be deletedStringTrue
usingAlias of the Milvus connection to be attached toStringFalse

Return

No return.

Example

from pymilvus import connections, utility
connections.connect()
utility.delete_user(user)
users = utility.list_usernames()
print(f"users in Milvus: {users}")