DropCollectionProperties()

Removes properties from a collection.

pub async fn drop_collection_properties(&self, request: DropCollectionPropertiesRequest) -> Result<()>

Request Syntax

let request = DropCollectionPropertiesRequest::builder()
    .collection_name("books")
    .property_key("collection.ttl.seconds")
    .build()?;

REQUEST FIELDS:

  • database_name: Option<String>

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

  • collection_name: String

    Name of the collection to alter. Required.

  • property_keys: HashSet<String>

    Keys of the properties to remove. At least one key is required. Use property_key() to add one.

RETURN TYPE:

Result<()>

RETURNS:

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

Example

let request = DropCollectionPropertiesRequest::builder()
    .collection_name("books")
    .property_key("collection.ttl.seconds")
    .build()?;
client.drop_collection_properties(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?