I manage my anki deck in source and use genanki to create a
apgk that I import into anki.
I manually assign id’s to each note. This way, if I update a note in source, the id stays the same, and when I import the generated
apkg, the existing note in the anki deck is updated in the way I expect. If I don’t provide my own id, anki generates an id based on the note text. This means when I import an updated note, anki will end up having two notes: the old note (since it hashes to value X) and the new note (since it hashes to value Y).
This works fine for updating, however this does not work for note deletion. If I delete a note and its corresponding id from my source, generate the
apkg excluding this note, and import into anki, anki will not perform a “full replacement” and will only add and update the existing cards.
As a user that keeps their notes in source and relies on the import functionality, I would like to be able to maintain the notes in a deck in full such that when I add, update, or remove notes in my source, that is reflected in anki when I import the
apkg I generate.