Delete rolled out pages in one shot | Community
Skip to main content
srikanthbiradar
Level 2
April 1, 2016
Solved

Delete rolled out pages in one shot

  • April 1, 2016
  • 4 replies
  • 979 views

Hi Friends,

I have a question regarding deleting rolled out pages in one shot.

Example scenario: Lets say I have rolled out a page from english to 10 english speaking countries accidentally and currently to delete those pages, I am going to each locale and deleting it. Is there any way we can delete all these 11 pages in one shot ?

 

Thanks, eagerly waiting for reply.

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 Lokesh_Shivalingaiah

There is not OOB to do the job for you. If its done accidentally and one time job, then I would suggest you to go and delete it manually

4 replies

smacdonald2008
Level 10
April 1, 2016

Out of the box no - but you can write a custom workflow that would do the job. Have you considered an AEM workflow?  Or another solution would even write a custom tool that deletes nodes from the JCR. There are different ways you can approach this if you want to write some code. 

Hemant_arora
Level 8
April 2, 2016

Simply write a sling servlet or a service and inside that write a query searching for the pages which have been rolled out, like while being rolled out every page must have been added with some property. In your query search pages with that property and delete all the pages which comes as a result.

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
April 2, 2016

There is not OOB to do the job for you. If its done accidentally and one time job, then I would suggest you to go and delete it manually

kautuk_sahni
Community Manager
Community Manager
April 4, 2016

Hi

As mentioned by other experts, there is not such OOB to achieve this.

I would Support Lokesh's answer, that if this is one time job, them its better to do this deletion manually.

If not, then you need to write a Sling Servlet/Service to achive this as mentioned my Hemant i.e. "write a query searching for the pages which have been rolled out, like while being rolled out every page must have been added with some property. In your query search pages with that property and delete all the pages which comes as a result."

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni