dropSnapshot()
This operation permanently drops a snapshot from a collection.
public void dropSnapshot(DropSnapshotReq request)
Request Syntax
dropSnapshot(DropSnapshotReq.builder()
.databaseName(String databaseName)
.collectionName(String collectionName)
.snapshotName(String snapshotName)
.build()
)
BUILDER METHODS:
databaseName(String databaseName)The name of the database that contains the collection. If omitted, the current database is used.
collectionName(String collectionName)The name of the collection associated with the snapshot operation.
snapshotName(String snapshotName)The name of the snapshot.
RETURNS:
void
EXCEPTIONS:
MilvusClientException
This exception is raised when required parameters are missing, numeric parameters are out of range, or the server returns an error for this operation.
Example
import io.milvus.v2.service.snapshot.request.DropSnapshotReq;
DropSnapshotReq request = DropSnapshotReq.builder()
.databaseName("default")
.collectionName("book_chunks")
.snapshotName("book_chunks_backup")
.build();
client.dropSnapshot(request);