A site maintainer can bulk delete all terms in a vocabulary that are referenced by N or fewer nodes

Created on 23 September 2022, about 2 years ago
Updated 25 October 2023, about 1 year ago

Problem/Motivation

When a vocabulary gets unwieldy (on one 15-year-old site with 27,000 nodes there are 19,000 tags) a first step in getting control is deleting the terms that are definitely not used. Rather than a dedicated module for deleting orphan terms, it makes sense to add the functionality to this module.

Proposed resolution

A person with permissions to the clean taxonomy dashboard should also have access to a "Bulk Auto Delete" tab where they can choose:

  1. Vocabulary
  2. Threshold of referenced nodes (default zero)
  3. Only terms older than ___ days

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇺🇸United States mlncn Minneapolis, MN, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States mlncn Minneapolis, MN, USA

    Spent way too long working on this but it's ready! OK i missed the "terms older than" capability— can make that another issue, this bulk delete / prune is a full feature in itself already.

    Did a bit of refactoring of other code to make use of it here— the list page is now generated by a single query, it is sorted by usage count and then term ID now, and it's probably possible to make it user-sortable too.

  • @mlncn opened merge request.
Production build 0.71.5 2024