If a note has no more card, warns instead of deleting it

AnkiWeb addon 2018640062

Prevents Empty Cards from deleting notes that would become cardless, tagging them NoteWithNoCard and opening the browser instead, while removing that tag once they have a card.
AI-generated summary; may contain mistakes.

note-managementfork-or-reupload

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
5 (👍 5 · 👎 0)
Updated
2019-04-27
Anki versions
unknown
Description language
en

Maintenance

abandoned

  • Last update or commit was 2251 days before the snapshot (2020-08-02).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2019-04-27
History across monthly snapshots

Loading…

Similar addons

Merge Notes

Merge multiple selected notes into one new note with field mapping, separators, cloze removal, tag preservation, optional original deletion, history transfer, undo, and logs.

schedulingnote-managementformattingcard-templates

Rating 0 👍 0 · 👎 0 ⭐ 2 Anki 2.1.1~ Updated 2026-06-06
Bulk card creator with JSON

Create Anki notes in bulk from JSON or CSV/TSV, with deck, note type, tags, validation, warnings, editing, and creation reports.

card-creationimport

Rating 10 👍 9 · 👎 1 ⭐ 1 Anki 2.1.1~ Updated 2026-04-25

README

Tag notes with no card

Rationale

Sometime, you press «Empty cards...», and anki also delete note. Because when a note has no more card, anki deletes it. (see [https://github.com/Arthur-Milchior/anki/blob/master/documentation/deletion.md] for more information about deletion)

However, maybe you didn't actually want to delete the whole note and lose its entire content. May be you thought anki were going to delete a few card which became empty, not realizing it will in fact delete EVERY cards, and thus delete the note, and its fields, and its tag...

With this add-on, when you press «Empty cards», cards are deleted as usual, with one exception. If deleting the cards leave the note empty, then the cards are not deleted. Instead, the tag NoteWithNoCard is added to those notes, and the browser is opened to show those notes.

You can still delete those notes if that's what you want, but you have either to disable this add-on and restart anki, or to delete them manually from the browser.

Warning

The tag NoteWithNoCard is automatically removed from notes which now have a card, when you use «empty cards». This is probably what you want, so that the tag states the truth.

Note that a note with no cards can also occurs because of the synchronization process. In which card, this add-on won't save the note. Instead, you can save it using add-on 1135180054.

Version 2.0

Port by lovac42

Internal

This add-on modifies the method aqt.main.AnkiQt.onEmptyCards.

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-keep-empty-note
Addon number 2018640062