milvus-logo
LFAI
< Docs
  • Java

dropAlias()

This operation drops a specified collection alias.

public void dropAlias(DropAliasReq request)

Request Syntax

dropAlias(DropAliasReq.builder()
    .alias(String alias)
    .build()
)

BUILDER METHODS:

  • alias(String alias)

    The alias of a collection.

    Before this operation, ensure that the alias exists. Otherwise, exceptions will occur.

RETURNS:

void

EXCEPTIONS:

  • MilvusClientExceptions

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

Example

// drop alias "test_alias"
DropAliasReq dropAliasReq = DropAliasReq.builder()
        .alias("test_alias")
        .build();
client.dropAlias(dropAliasReq);

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?