diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/ChangesetCreator.cpp b/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/ChangesetCreator.cpp
index 1d53c75..9a77822 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/ChangesetCreator.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/changeset/ChangesetCreator.cpp
@@ -78,6 +78,17 @@ _numCreateChanges(0),
_numModifyChanges(0),
_numDeleteChanges(0)
{
+ if (printDetailedStats)
+ {
+ QFile statsFile(statsOutputFile);
+ if (statsFile.exists())
+ {
+ if (!statsFile.remove())
+ {
+ LOG_ERROR("Unable to remove changeset statistics file: " << statsOutputFile);
+ }
+ }
+ }
}
void ChangesetCreator::create(const QString& output, const QString& input1, const QString& input2)