summary refs log tree commit diff
path: root/src/Cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache.cc')
-rw-r--r--src/Cache.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Cache.cc b/src/Cache.cc

index 010b4aa9..befb3a0a 100644 --- a/src/Cache.cc +++ b/src/Cache.cc
@@ -272,3 +272,12 @@ Cache::nextBatchToken() const return QString::fromUtf8(token.data(), token.size()); } + +void +Cache::deleteData() +{ + qInfo() << "Deleting cache data"; + + if (!cacheDirectory_.isEmpty()) + QDir(cacheDirectory_).removeRecursively(); +}