r/Anki•
BuckMosk

Need help removing Useless Tags

I have a ton of extra tags that I accidently added when importing a deck from a text file. Anyone know how to get rid of these?

Imgur

Posted Feb 5, 2018, 7:15 AM UTC

24
ijgnord•

I'm not aware of a command like "remove all tags from selected cards" and the remove button in the toolbar of the browser doesn't offer regular expressions.

So I would

  • move the affected cards to a separate deck
  • run the addon "Add note id" to give each of these cards a unique first field
  • export this deck
  • import it into a spreadsheet software like Libreoffice Calc (be careful with excel, see the manual)
  • edit the deck in the spreadsheet software (delete the whole column that contains text), and then
  • reimport it to overwrite your existing cards.

If you are sure that you didn't modify any of the imported cards you might also modify the text file from which you imported.

As always: Make sure to have backups


https://apps.ankiweb.net/docs/manual.html#exporting-text

If you choose "Notes in Plain Text", Anki will write the contents of the notes into a text file. Each field is separated by a tab. If you edit the resulting file and don’t modify the first field, you can later import that file back into Anki and Anki will update your notes based on your edits, provided you import back into the same note type.

If you find yourself needing to edit the first field as well, you’ll need to change the format of your note type so that the first field is an ID number rather than actual text. (You can install the "Add note id" plugin to make this easier.)

In order for formatting to be preserved when you import text back in, the text is exported with all the HTML formatting embedded in it.

2
arthurmilchior•

With this add-on, it does https://ankiweb.net/shared/info/1502698883 Only very simple regexp, the start "*" means "any text" but it may helps

2
No-More-Stars•

I can do this via scripts. PM me your collection.anki2 after you've finished studying for the day and I'll make the database modifications

1
dedu6ka•

If you dont have too many cards, this solution works: http://prntscr.com/iai34d

1