better snapshots management

This commit is contained in:
2026-02-16 02:04:57 +01:00
parent 2a5221c29a
commit 1903535dc5
2 changed files with 22 additions and 17 deletions

View File

@@ -480,6 +480,8 @@ func (s *Server) handleAdminDeleteSnapshot(w http.ResponseWriter, r *http.Reques
if snap != nil {
if snap.StorageType == "s3" && s.s3Backend != nil {
s.s3Backend.Delete(context.Background(), snap.StorageKey)
} else if snap.StorageType == "local" && s.localBackend != nil {
s.localBackend.Delete(context.Background(), snap.StorageKey)
}
}