How to Bulk Delete Redirects in ACS AEM Commons Redirect Manager | Community
Skip to main content
November 26, 2024
Solved

How to Bulk Delete Redirects in ACS AEM Commons Redirect Manager

  • November 26, 2024
  • 2 replies
  • 832 views

Hi everyone,

 

I hope you’re doing well!

 

I’m currently managing redirects in Adobe Experience Manager using the ACS AEM Commons Redirect Manager. Over time, we’ve accumulated a large number of redirects, and now I need to delete many of them in bulk.

 

While I understand how to delete individual entries via the UI, doing so one by one is not feasible for the volume I’m working with. Is there a way to delete multiple redirects at once using a bulk action?

 

Any insights, tips, or documentation links would be greatly appreciated.

 

Thank you in advance for your help!

 

Best regards,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

Hi, 

If we’re talking about the same ACS Commons feature—Redirect Manager—you can simply export the redirects into a spreadsheet, make the updates, and then import it back. Please check here: https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-manager/index.html#features 

Here is a demo on how to do it: https://www.youtube.com/watch?v=nZgzisSa_Nc

 

Hope this helps

2 replies

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 26, 2024

Hi @victorphp ,

 

You can also consider to create a utility for bulk deleting redirects using a Sling Servlet and  OSGi Service as follows:

  1. Sling Servlet:
    • The servlet will accept filtering parameters (e.g., path, date, status) through an HTTP request. /mypage.html?path=/old-path&status=active
    • It will pass these parameters to an OSGi service that handles the deletion logic.
  2. OSGi Service:
    • The service will implement the bulk deletion logic, querying redirects based on the filters.
    • It will interact with the Sling Model or Sling API to remove matching redirect nodes.

This utility structure provides a clean separation of concerns and allows you to handle bulk deletions efficiently with flexible filtering options.

 

Thanks,

Ritesh Mittal

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
November 26, 2024

Hi, 

If we’re talking about the same ACS Commons feature—Redirect Manager—you can simply export the redirects into a spreadsheet, make the updates, and then import it back. Please check here: https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-manager/index.html#features 

Here is a demo on how to do it: https://www.youtube.com/watch?v=nZgzisSa_Nc

 

Hope this helps

Esteban Bustamante