FEATURE REQUEST: Delete unused tags instead of returning in the list of potential tags
See original GitHub issueIn 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:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ababic, yes, I’ll look into that.
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.