DropAlias()

Drops an alias without dropping the underlying collection.

pub async fn drop_alias(&self, request: DropAliasRequest) -> Result<()>

Request Syntax

let request = DropAliasRequest::builder()
    .alias("featured")
    .build()?;

REQUEST FIELDS:

  • database_name: Option<String>

    Name of the target database; uses the default database when empty.

  • alias: String

    The alias to drop. Required.

RETURN TYPE:

Result<()>

RETURNS:

Returns an empty result indicating success. Returns Error on failure.

Example

let request = DropAliasRequest::builder()
    .alias("featured")
    .build()?;
client.drop_alias(request).await?;

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?