diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/resourcefacade.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp index df52538..2e4d668 100644 --- a/common/resourcefacade.cpp +++ b/common/resourcefacade.cpp | |||
@@ -87,6 +87,11 @@ KAsync::Job<void> ResourceFacade::remove(const Akonadi2::ApplicationDomain::Akon | |||
87 | return; | 87 | return; |
88 | } | 88 | } |
89 | ResourceConfig::removeResource(identifier); | 89 | ResourceConfig::removeResource(identifier); |
90 | //TODO shutdown resource, or use the resource process with a --remove option to cleanup (so we can take advantage of the file locking) | ||
91 | QDir dir(Akonadi2::storageLocation()); | ||
92 | for (const auto &folder : dir.entryList(QStringList() << identifier + "*")) { | ||
93 | Akonadi2::Storage(Akonadi2::storageLocation(), folder, Akonadi2::Storage::ReadWrite).removeFromDisk(); | ||
94 | } | ||
90 | }); | 95 | }); |
91 | } | 96 | } |
92 | 97 | ||