[GH-ISSUE #872] Bulk tag deletion #567

Closed
opened 2026-03-02 11:50:55 +03:00 by kerem · 8 comments
Owner

Originally created by @fabfabretti on GitHub (Jan 12, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/872

Originally assigned to: @lexafaxine on GitHub.

Describe the feature you'd like

Hi! First of all, thanks for the awesome project :)

My request is to be able to delete multiple tags (or even all tags) easily, for example by being able to select multiple tags in the /tags page and then hitting "delete" once.

Alternatively, this could also be implemented by being able to easily delete tags from bookmarks when bulk-editing bookmarks: in Bulk Edit mode, it would be nice to be able to easily remove all tags from selected bookmarks (and this would allow easy deletion of tags from the /tags page, as they would be orphaned).

Describe the benefits this would bring to existing Hoarder users

I believe it could be useful to be able to easilly delete a high number of tags that are not yet orphaned (e.g. overly specific or underly used). This could also be useful to "start from scratch" if one wants to change their tagging system/prompt and start from a clean slate, particularly so with the recent introduction of smart lists.

Can the goal of this request already be achieved via other means?

The only ways I found to be able to delete tags is either:

  • Delete tags one at a time: this is very slow, as at the moment we can't multi-select tags (from what I'm aware) and we need to click the x on each tag and then click on the confirmation button.
  • Merge all tags into one, and then delete the single remaining tag. This is doable and I've done this in the past, but it's still quite time consuming if you have a lot of tags, which is usually the case when using the AI-tagging system.
  • You can select all articles, enter bulk edit mode and finally add+delete each tag, one by one. This works, but again as per point 2 it takes quite a lot of time when you use AI-tagging system and have a lot of tags.
  • From this comment , it should be possible to bulk delete tags by rerunning inference tag service for all items and using a custom prompt that asks the AI for an empty/limited array. I was personally unable to do this, as each time I rerun the tagging with the mentioned prompt I would be able to orphan some of the tags, but not all of them (I had 2 orphaned tags before this test; after the first retag it was 32 orphans, with the second one 95, final attempt 165 orphans). Still, from what I understand, this still has a big downside: this requires you to resend all of the content to your AI API again, potentially "wasting" a lot of tokens for something that could be done without AI.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

Additional context

I've tried looking for similar issues with terms like "bulk tag edit","tag delete","tag deletion" but couldn't find this issue. I apologize if I missed a similar issue, and please let me know if you have any question!

Originally created by @fabfabretti on GitHub (Jan 12, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/872 Originally assigned to: @lexafaxine on GitHub. ### Describe the feature you'd like Hi! First of all, thanks for the awesome project :) My request is to be able to delete multiple tags (or even all tags) easily, for example by being able to select multiple tags in the /tags page and then hitting "delete" once. Alternatively, this could also be implemented by being able to easily delete tags from bookmarks when bulk-editing bookmarks: in Bulk Edit mode, it would be nice to be able to easily remove all tags from selected bookmarks (and this would allow easy deletion of tags from the /tags page, as they would be orphaned). ### Describe the benefits this would bring to existing Hoarder users I believe it could be useful to be able to easilly delete a high number of tags that are not yet orphaned (e.g. overly specific or underly used). This could also be useful to "start from scratch" if one wants to change their tagging system/prompt and start from a clean slate, particularly so with the recent introduction of smart lists. ### Can the goal of this request already be achieved via other means? The only ways I found to be able to delete tags is either: - **Delete tags one at a time:** this is very slow, as at the moment we can't multi-select tags (from what I'm aware) and we need to click the x on each tag and then click on the confirmation button. - **Merge all tags into one, and then delete the single remaining tag**. This is doable and I've done this in the past, but it's still quite time consuming if you have a lot of tags, which is usually the case when using the AI-tagging system. - You can **select all articles, enter bulk edit mode and finally add+delete each tag, one by one**. This works, but again as per point 2 it takes quite a lot of time when you use AI-tagging system and have a lot of tags. - From [this comment ](https://github.com/hoarder-app/hoarder/issues/111#issuecomment-2496173499), it should be possible to bulk delete tags by **rerunning inference tag service for all items and using a custom prompt that asks the AI for an empty/limited array.** I was personally unable to do this, as each time I rerun the tagging with the mentioned prompt I would be able to orphan some of the tags, but not all of them (I had 2 orphaned tags before this test; after the first retag it was 32 orphans, with the second one 95, final attempt 165 orphans). Still, from what I understand, this still has a big downside: this requires you to resend all of the content to your AI API again, potentially "wasting" a lot of tokens for something that could be done without AI. ### Have you searched for an existing open/closed issue? - [X] I have searched for existing issues and none cover my fundamental request ### Additional context I've tried looking for similar issues with terms like "bulk tag edit","tag delete","tag deletion" but couldn't find this issue. I apologize if I missed a similar issue, and please let me know if you have any question!
kerem 2026-03-02 11:50:55 +03:00
Author
Owner

@lexafaxine commented on GitHub (Jan 13, 2025):

Hello and Thank you for your advice! I also think bulk edit tags is a practical functionality and this should could be done just in UI side but not required AI. Below is a quite rough demo but please let me know if something like this could meet your requirement.
bulk edit tags

(when click bulk edit we could select multiple tags and could select & unselect them to bulk delete)

<!-- gh-comment-id:2586232016 --> @lexafaxine commented on GitHub (Jan 13, 2025): Hello and Thank you for your advice! I also think bulk edit tags is a practical functionality and this should could be done just in UI side but not required AI. Below is a quite rough demo but please let me know if something like this could meet your requirement. ![bulk edit tags](https://github.com/user-attachments/assets/6650c131-060f-4e5b-b6f8-396c7e4b9415) (when click bulk edit we could select multiple tags and could select & unselect them to bulk delete)
Author
Owner

@fabfabretti commented on GitHub (Jan 13, 2025):

This looks very nice! If it's possible, I think it could be useful to also have a "select all" button like for bookmark bulk edit, but even just what is shown in the gif would already be enough :D

<!-- gh-comment-id:2586590158 --> @fabfabretti commented on GitHub (Jan 13, 2025): This looks very nice! If it's possible, I think it could be useful to also have a "select all" button like for bookmark bulk edit, but even just what is shown in the gif would already be enough :D
Author
Owner

@lexafaxine commented on GitHub (Jan 14, 2025):

Thank you @fabfabretti ! Do you think we could proceed in this way? @MohamedBassem If it is OK could you please assign it to me? Thanks!

<!-- gh-comment-id:2588639848 --> @lexafaxine commented on GitHub (Jan 14, 2025): Thank you @fabfabretti ! Do you think we could proceed in this way? @MohamedBassem If it is OK could you please assign it to me? Thanks!
Author
Owner

@kamtschatka commented on GitHub (Jan 14, 2025):

agreed, I also had an issue with this before and merged all tags I wanted to delete into another one and then deleted it, but that was quite time consuming as well.
a big issue for me was the confirmation dialog, that pops up for every single tag you want to delete and can not be confirmed via pressing "Enter"

<!-- gh-comment-id:2589798049 --> @kamtschatka commented on GitHub (Jan 14, 2025): agreed, I also had an issue with this before and merged all tags I wanted to delete into another one and then deleted it, but that was quite time consuming as well. a big issue for me was the confirmation dialog, that pops up for every single tag you want to delete and can not be confirmed via pressing "Enter"
Author
Owner

@MohamedBassem commented on GitHub (Jan 15, 2025):

@lexafaxine The proposed solution looks good to me! Looking forward to the PR!

<!-- gh-comment-id:2591940741 --> @MohamedBassem commented on GitHub (Jan 15, 2025): @lexafaxine The proposed solution looks good to me! Looking forward to the PR!
Author
Owner

@MrModest commented on GitHub (Jan 16, 2025):

@lexafaxine it would be nice to have bulk operations in general 🙏

For example, select all bookmarks in a list and delete them, or select multiple bookmarks and add to them some common tags. This feature would be awesome to see

<!-- gh-comment-id:2595012699 --> @MrModest commented on GitHub (Jan 16, 2025): @lexafaxine it would be nice to have bulk operations in general 🙏 For example, select all bookmarks in a list and delete them, or select multiple bookmarks and add to them some common tags. This feature would be awesome to see
Author
Owner

@MohamedBassem commented on GitHub (Jan 16, 2025):

@MrModest Hoarder already supports bulk actions, just click on the "pencil" icon in the navbar, and the bookmarks will be selectable and bulk actions will show up.

<!-- gh-comment-id:2595016551 --> @MohamedBassem commented on GitHub (Jan 16, 2025): @MrModest Hoarder already supports bulk actions, just click on the "pencil" icon in the navbar, and the bookmarks will be selectable and bulk actions will show up.
Author
Owner

@MrModest commented on GitHub (Jan 16, 2025):

Yeah, just noticed this PR https://github.com/hoarder-app/hoarder/pull/259 and did check the app again and found this button. It wasn't super intuitive to me what this button does 😅
Thank you!

<!-- gh-comment-id:2595031367 --> @MrModest commented on GitHub (Jan 16, 2025): Yeah, just noticed this PR https://github.com/hoarder-app/hoarder/pull/259 and did check the app again and found this button. It wasn't super intuitive to me what this button does 😅 Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/karakeep#567
No description provided.