Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

How to Bulk Delete Redirects in ACS AEM Commons Redirect Manager

Avatar

Level 1

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,

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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#fea... 

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

 

Hope this helps



Esteban Bustamante

View solution in original post

2 Replies

Avatar

Community Advisor

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

Avatar

Correct answer by
Community Advisor

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#fea... 

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

 

Hope this helps



Esteban Bustamante