diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 12229cb33..06ed0a6a9 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1330,6 +1330,7 @@ later by using File>Close. if ui.utils.askUser(_("Delete %s?") % self.browserDecks[c]['name']): del self.browserDecks[c] os.unlink(deck) + shutil.rmtree(re.sub(".anki$", ".media", deck)) self.config['recentDeckPaths'].remove(deck) self.showDeckBrowser()