Add ability to delete all tags #2200
Reference in New Issue
Block a user
Delete Branch "mass-delete-tags"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've done a few imports that I messed up and have a lot of tags that I don't want/care about, and I'd love to be able to start fresh. I think having the ability to mass select tags (or categories) for deletion would be great as well in the future, but as a starting point I thought I'd bring tags up to the same functionality that categories have.
https://github.com/user-attachments/assets/5a970982-cf13-445c-b463-cc2831a9a22e
I also noticed, when copying this from the categories, that the capitalization of the confirmation button was a bit strange. I updated the
CustomConfirmto havetitlelizefor the title & button, anddowncasefor the text. I think this is a bit nicer looking personally, but happy to revert if others feel differently.@@ -37,0 +37,4 @@def destroy_allCurrent.family.tags.destroy_allredirect_back_or_to tags_path, notice: "All tags deleted"endI'm still new to rails, but some of the functionality you can build out in a handful of lines of code is kinda insane
@@ -37,0 +37,4 @@def destroy_allCurrent.family.tags.destroy_allredirect_back_or_to tags_path, notice: "All tags deleted"endThe appeal of Rails for sure!
Agree, this is a nice feature for users who have a mess of tags they want to cleanup. And definitely matches up with our existing "delete all" pattern.