milvus-logo
LFAI
< Docs
  • Java

dropRole()

This operation drops a custom role.

public void dropRole(DropRoleReq request)

Request Syntax

dropRole(DropRoleReq.builder()
    .roleName(String roleName)
    .build()
)

BUILDER METHODS:

  • roleName(String roleName)

    The name of the role to drop.

RETURNS:

void

EXCEPTIONS:

  • MilvusClientExceptions

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

Example

DropRoleReq dropRoleReq = DropRoleReq.builder()
        .roleName("test")
        .build();
client.dropRole(dropRoleReq);

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?