milvus-logo
LFAI
< Docs
  • Python

drop()

This method deletes a role. It succeeds if the role name exists, or fails if the role name does not exist.

Invocation

drop()

Parameters

None

Return

No return

Example

from pymilvus import connections, utility
from pymilvus.orm.role import Role
connections.connect()
role = Role(name=role_name)
role.drop()
roles = utility.list_roles()
print(f"roles in Milvus: {roles}")

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?