[Enhancement]: Remove Unused Tags #90

Closed
opened 2026-06-14 21:34:39 +00:00 by ValleyGeek · 3 comments
Owner

Affected area

Tag Toolbox Container

Current behavior

N/A

Desired improvement

Add a button near the bottom of the tag toolbox to 'Delete Unused Tags' removing all tags that have no images assigned.

References

No response

### Affected area Tag Toolbox Container ### Current behavior N/A ### Desired improvement Add a button near the bottom of the tag toolbox to 'Delete Unused Tags' removing all tags that have no images assigned. ### References _No response_
Member

Implemented on branch 0.1.32/issue-90-delete-unused-tags:

  • WorkingDB.get_unused_tag_names() / delete_unused_tags() — non-system tags with zero image_tags rows.
  • TagManager.list_unused_tag_names() / delete_unused_tags() wrap the DB calls.
  • Tag panel gets a "Delete Unused Tags" button next to "Delete All Tags"; clicking it shows a confirmation dialog listing the tags that will be removed (or an info dialog if none are unused).
  • Unit test added in tests/test_pr9_tags.py.

Full test suite (343 passed) and ruff check/format are clean. Not opening a PR yet per project workflow — will do so on request.

Implemented on branch `0.1.32/issue-90-delete-unused-tags`: - `WorkingDB.get_unused_tag_names()` / `delete_unused_tags()` — non-system tags with zero `image_tags` rows. - `TagManager.list_unused_tag_names()` / `delete_unused_tags()` wrap the DB calls. - Tag panel gets a "Delete Unused Tags" button next to "Delete All Tags"; clicking it shows a confirmation dialog listing the tags that will be removed (or an info dialog if none are unused). - Unit test added in `tests/test_pr9_tags.py`. Full test suite (343 passed) and `ruff check`/`format` are clean. Not opening a PR yet per project workflow — will do so on request.
Member

Requesting a review of the implementation on branch 0.1.32/issue-90-delete-unused-tags (commit 3ed9419). Summary above covers the changes; tests and lint are clean. Happy to open a PR once reviewed.

Requesting a review of the implementation on branch `0.1.32/issue-90-delete-unused-tags` (commit 3ed9419). Summary above covers the changes; tests and lint are clean. Happy to open a PR once reviewed.
Member

Resolved in #98 (branch 0.1.32/issue-90-delete-unused-tags, validated by requester). Closing.

Resolved in #98 (branch `0.1.32/issue-90-delete-unused-tags`, validated by requester). Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ai-collab/bulk-image-organizer#90
No description provided.