Skip to main content

drop_snapshot()

Private Preview

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

Request Syntax​

python
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​

python
from pymilvus import MilvusClient

client = MilvusClient(uri="YOUR_CLUSTER_ENDPOINT")

client.drop_snapshot(snapshot_name="backup_20260401")
Minimum SDK versionv3.0.x