跳到主要内容
版本:v3.0.x

drop_privilege_group()

This operation drops the specified privilege group.

Request Syntax

Python
drop_privilege_group(
self,
group_name: str,
timeout: Optional[float] = None,
**kwargs,
)

PARAMETERS:

  • group_name (str) -

    The name of the target privilege group.

  • timeout (Optional[float]) -

    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, especially when the specified alias does not exist.

Example

Python
from pymilvus import MilvusClient

# 1. Create a milvus client
client = MilvusClient(
uri="http://localhost:19530",
token="root:Milvus"
)

client.drop_privilege_group(
group_name="my_privilege_group"
)