メインコンテンツまでスキップ

drop_snapshot()
Private Preview

Addedv3.0.x

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="YOUR_CLUSTER_ENDPOINT")

client.drop_snapshot(snapshot_name="backup_20260401")