public void deleteLiveStatisticsBetween(String guiPath, String accountName, Long fromTimeperiod, Long toTimeperiod) {
List<String> keysToDeleteList = new ArrayList<>();
DBIterator iterator = db.iterator();
iterator.seek(bytes(liveStatsBucketKey + accountName));
while (iterator.hasNext() && asString(iterator.peekNext().getKey()).startsWith(liveStatsBucketKey + accountName)) {
String key = asString(iterator.peekNext().getKey());
BasicMetricHour metricHour = gson.fromJson(asString(iterator.next().getValue()), BasicMetricHour.class);
if (metricHour.getHoursSince1970() >= fromTimeperiod && metricHour.getHoursSince1970() <= toTimeperiod) {
keysToDeleteList.add(key);
}