More data delete endpoints (#363)

This commit is contained in:
Dominic Wong
2022-02-03 17:32:08 +00:00
committed by GitHub
parent ba77f7b2f4
commit 0663f196d5
9 changed files with 144 additions and 14 deletions

View File

@@ -346,5 +346,8 @@ func (s *Search) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequ
toDelete = append(toDelete, entry.Index)
}
return s.deleteIndices(ctx, toDelete, method)
if len(toDelete) > 0 {
return s.deleteIndices(ctx, toDelete, method)
}
return nil
}