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