FooSoft / anki-connect

Anki plugin to expose a remote API for creating flash cards.
https://foosoft.net/projects/anki-connect/
Other
1.94k stars 221 forks source link

Action DeleteDecks not working when cardsToo is false #233

Open PaulBonnot opened 3 years ago

PaulBonnot commented 3 years ago

Cf. title.

The action calls the Anki API function decks.rem(), and it looks like the assertion prevents it for deleting the deck : https://github.com/ankitects/anki/blob/main/pylib/anki/decks.py#L137

Maybe I understood it wrong ? If no, the docs should be updated to tell that it is not possible to delete a deck without its cards.

thiswillbeyourgithub commented 3 years ago

Related to #286 and #272

If anyone knows which function to call I would happily fix it :/