drop_privilege_group()
Deprecated.
This API is an ORM-style PyMilvus API and will be removed in PyMilvus 3.1. Use MilvusClient instead.
This operation drops a privilege group for the current role.
To complete this operation, you need to enable authentication on your Milvus instance. For details, refer to Authenticate User Access.
Request Syntax
drop_privilege_group(
privilege_group: str
)
PARAMETERS:
privilege_group (string)
[REQUIRED]
The name of the privilege group to drop.
RETURN TYPE:
NoneType
RETURNS:
None
EXCEPTIONS:
-
This exception will be raised when any error occurs during this operation, especially when the privilege group does not exist.
Example
from pymilvus import Role
# Create a role
role = Role("read_only")
role.create()
# Create a privilege group
role.create_privilege_group("read_only_privileges")
# Drop the privilege group
role.drop_privilege_group("read_only_privileges")