drop_snapshot()

This operation permanently deletes a snapshot. Once dropped, the snapshot data cannot be recovered.

Request Syntax

drop_snapshot(
    snapshot_name: str,
    timeout: Optional[float] = None,
    **kwargs
) -> None

PARAMETERS:

  • snapshot_name (str) - [REQUIRED] The name of the snapshot to drop.

  • timeout (Optional[float]) - An optional duration of time in seconds to allow for the RPC.

RETURN TYPE:

None

EXCEPTIONS:

  • MilvusException

    If the snapshot does not exist or the operation fails.

Examples

from pymilvus import MilvusClient

client = MilvusClient(uri="http://localhost:19530")

client.drop_snapshot(snapshot_name="backup_20260401")

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?