delete_volume()

This operation deletes a volume.

This method is available on Zilliz Cloud’s control-plane Volume service. Create VolumeManager with cloud_endpoint="https://api.cloud.zilliz.com" and a Zilliz Cloud API key that has access to the target project.

Request Syntax

delete_volume(
    volume_name: str
)

PARAMETERS

  • volume_name (str) -

    [REQUIRED]

    The name of the volume to delete.

RETURN TYPE

None

RETURNS

None

Example

from pymilvus.bulk_writer.volume_manager import VolumeManager

volume_manager = VolumeManager(
    cloud_endpoint="https://api.cloud.zilliz.com",
    api_key="YOUR_API_KEY"
)

volume_manager.delete_volume(
    volume_name="my_volume"
)

print(f"\nVolume my_volume deleted")

# Volume my_volume deleted

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?