question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FEATURE REQUEST: Delete unused tags instead of returning in the list of potential tags

See original GitHub issue

In keeping tags organized, it would be helpful if, when a lookup is done in the Wagtail admin while typing a tag name, any tag that is found that is not connected to any items would be deleted.

if tag.taggit_taggeditem_items.count() == 0:
    tag.delete()

For example, if someone typed “Newsletters” for a tag name but decides that it should really be “Newsletter”, “Newsletters” is continually returned along with the preferred “Newsletter” even though “Newsletters” is no longer used as a tag. This will likely result in user confusion and possible mis-classification on future document uploads.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
DanielSwaincommented, Mar 18, 2019

@ababic, yes, I’ll look into that.

0reactions
DanielSwaincommented, May 27, 2022

I just discovered that there is now a recipe in the Wagtail docs that, while not automatic as I had first proposed, provides the functionality needed to accomplish what is needed. Closing this feature request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Permanently Delete Customer Tags
To permanently and thoroughly remove a tag from your store, you must simply ensure that it is no longer attached to any customers....
Read more >
How to delete tags from drop down suggestions
The tags in suggestion list couldn't be manually deleted. The system automatically deletes unassigned tags after 3 days of disuse. Then the tags...
Read more >
[Feature Request] Remove unused Tags - English
Permanently removing the misspelled tag from the tag-list. tags.odt (current list, ordered). Tags have tremendous potential for searching the ...
Read more >
Erase tags
Hi, A suggestion for the future is to be able to see all tags you have ever created and be able to delete...
Read more >
Remove local git tags that are no longer on the remote ...
The key is discovering that you can delete a tag locally, then use git fetch ... That returns a list of hashes and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found