Skip to content

If no file is tagged with a specific tag, that tag should be removed #586

Description

@jancborchardt

Currently there can be »empty« tags. Once you typed the tag in the tags field of a file, it will start to exist, even if you remove it from the field directly after.

This is especially annoying for the tags search then where choosing an empty tag just shows the message »No files found for the selected tags«.

As soon as there is no file associated with a tag anymore, the tag is not needed and should be deleted.

Activity

  1. nickvergessen commented on Jul 27, 2016

    @nickvergessen
    Member

    👎

    When you have files_accesscontrol or files_automatedtagging rules depend on such tags they should not be deleted automatically.

    Also note, that the tags can be used for other things as well (announcements, whatever).

    So automatic deletion is becoming way to complex for live operation. Maybe we could try a repair-step on update, but even then accesscontrol and automatedtagging cases are hard to detect as well as other use-cases of system tags.

  2. nickvergessen commented on Jul 27, 2016

    @nickvergessen
    Member

    One idea, ask stuff like workflowengine to create tag assignments when a tag is used, so "tag the rule with the tag itself"
    Then we might be able to add something like "is the tag assigned to anything" and if not, delete the tag, that might work, but breaks the current behaviour

  3. MariusBluem commented on Jul 27, 2016

    @MariusBluem
    Member
  4. jancborchardt commented on Jul 27, 2016

    @jancborchardt
    MemberAuthor

    Then we might be able to add something like "is the tag assigned to anything" and if not, delete the tag

    Yeah, that’s what I meant. Of course if it’s in use for something, then it should be preserved. But currently you end up with a lot of dead tags.

  5. MorrisJobke commented on Mar 27, 2017

    @MorrisJobke
    Member

    This is part of #1465

  6. added a commit that references this issue on Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions