Retiring Tags on AEM DAM
What is the best way to retire, remove, or expire tags on AEM DAM without majorly affecting the content that's associated with the retired tags?
What is the best way to retire, remove, or expire tags on AEM DAM without majorly affecting the content that's associated with the retired tags?
Deleting tags is not a regular authoring activity. Instead, adopt a governance model where tag changes (especially deletion) are planned, controlled, and executed by administrators. Use unpublishing* or merging to “retire” tags so that the legacy content remains accessible, while avoiding the performance pitfalls of updating large numbers of pages in one go.
A more active alternative could be using Query, you can identify the tags referenced on the pages. With the TagManager API com.day.cq.tagging.TagManager, you can delete these tags from the page, and subsequently, they can be removed from /etc/tags/.
* consider marking the tag as deprecated (for example, by renaming it to include “-retired”) so that new content isn’t tagged with it, yet existing content remains searchable.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.