Delete empty NEW cards, tag other empty cards

AnkiWeb addon 1402327111

Restricts empty-card deletion to new cards only, preserving reviewed cards and optionally tagging notes that would otherwise be deleted.
AI-generated summary; may contain mistakes.

note-managementtaggingbackup-maintenance

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
2 (πŸ‘ 2 Β· πŸ‘Ž 0)
Updated
2021-10-16
Anki versions
2.1.48~
License
GPL-3.0 (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

abandoned

  • Last update or commit: 2021-10-16 (1842 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.272020-03-15
2.1.282.1.472020-11-23
2.1.48+2021-10-16
History across monthly snapshots

Loading…

Similar addons

Anki Excel Sync

Batch exports Anki notes to .xlsx files organized by tag hierarchy and re-imports edits, preserving scheduling while allowing creation, modification, and deletion of cards.

importexportnote-managementtagging

28 votes 77% approval πŸ‘ 26 Β· πŸ‘Ž 2 ⭐ 26 Anki 25.09.4~ Updated 2026-05-18
Quick tagging 2.1

Lets you quickly add or edit tags while reviewing, with configurable shortcuts for specific tags and optional burying or suspending of cards or notes.

review-flowtaggingshortcuts

35 votes 85% approval πŸ‘ 34 Β· πŸ‘Ž 1 ⭐ 9 Anki 2.1.20~ Updated 2020-02-11

Description

Allow to restrict deletion of empty cards to new cards only. Thus, you won't lose informations about cards which you have already seen and which became empty by accident. Tags seen empty card. Please see https://github.com/Arthur-Milchior/anki-empty-new-cards for warning about the list of cards that will be deleted.

README

Delete empty cards only if they are new

Rationale

I do not like to delete cards. If some cards where reviewed and no longer exists, it is probably a sign that I made something wrong. When I correct this error, those empty cards will still be here with their review history. Great !

However, I sometime create thoushands of new cards by accident, when I edit a card type. I want to be able to delete those card.

The tradeoff I found is deleting cards only when they are new. If, sometime, I find and empty card, already seen, and it's not a mistake, I just have to suspend it, and everything is all right.

I also tag notes which should have been deleted. This can be turned of in the configuration.

Usage

From main window, select "Tools">"Empty new cards". It acts similarly to "Empty cards".

Internal

This add-on redefine anki.collection._Collection.genCards during the process. The new method call the previous one.

The previous method is set back once the action is done.

Warning concerning the list of notes

For technical reason, it's hard to change the list of note and card that will be deleted without a lot of work. So the list of cards to be deleted is not changed and contains cards already seen that won't actually be deleted. Furthermore, for each note with no valid card, if you decide to keep those notes, then both the first card and all seen cards will be kept. This is not an ideal solution, but I've not enough time and interest to improve it.

Links, licence and credits

Key Value
Copyright Arthur Milchior arthur@milchior.fr
Based on Anki code by Damien Elmes anki@ichi2.net
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-empty-new-cards
Addon number 1402327111