Delete page in author should auto unpublish the page | Community
Skip to main content
Anudeep_Garnepudi
Community Advisor
Community Advisor
January 27, 2023
Duplicate

Delete page in author should auto unpublish the page

  • January 27, 2023
  • 10 replies
  • 3477 views
Request for Feature Enhancement (RFE) Summary: Delete page in author should auto unpublish the page.
Use-case: Content authors who are new to AEM are deleting the pages without unpublishing them, assuming it will reflect the on actual site. Page is deleted in author but not in publish or in live site.
Current/Experienced Behavior: Deleting page on author stays on author without unpublishing it.
Improved/Expected Behavior: Expected it to auto publish the page if author deletes the page.
Environment Details (AEM version/service pack, any other specifics if applicable):  
Customer-name/Organization name:  
Screenshot (if applicable):  
Code package (if applicable):  

10 replies

joerghoh
Adobe Employee
Adobe Employee
January 27, 2023

This should be part of the product since a long time (CQ 5.3 or so). Can you describe how one could achieve the situation you described? Thanks!

kautuk_sahni
Community Manager
Community Manager
February 1, 2023

@anudeep_garnepudi Can you describe how one could achieve the situation you described? 

Kautuk Sahni
Anudeep_Garnepudi
Community Advisor
Community Advisor
February 1, 2023

@joerghoh , @kautuk_sahni,  I have just tested and working as expected. Our business teams, authors are new to AEM and they reported it few times. I will check and update exact scenario as it happed few times.

AG
kautuk_sahni
Community Manager
Community Manager
February 1, 2023

Marking this as duplicate as it is already part of the product. We can change this if there are some new findings from your side. 

Kautuk Sahni
joerghoh
Adobe Employee
Adobe Employee
February 4, 2023

 @anudeep_garnepudi Thanks for double-checking!

yuriy_shestakov
Level 3
July 24, 2023

IMO, this may happen only in two cases: 

1. There's a long replication queue, so the actual publishing of a page will take place only after some time.

2. Authors delete page in MSM under language-masters/en node and expect removing of the same page from other countries/languages like us/en without a configured rollout configuration for that, and without rolling out the parent folder (this was a real case on one of my projects).

All other unpublishing-on-delete cases always worked for me on AEM since the first (6.0) version.

yashp0808
Level 3
January 23, 2024

@kautuk_sahni@joerghoh,

 

One possible method to achieve this would be to implement an event listener for delete event to check the replication status of the page/asset on author and if status is found to be published, then trigger an unpublish event and delete only once unpublish event is successful. 

Level 2
January 7, 2025

Hi All, Can some one suggest how to unpublish/delete those in publish instance in AEMaaCS where it is already deleted in author instance? Issue is on AEM cloud.

Thanks in advance for the solution!

Anudeep_Garnepudi
Community Advisor
Community Advisor
January 7, 2025

@saim  In case if your pages are deleted in author and not on publish, then you can delete them from publish instance using Distribution.

 

Tools > Deployment > Distribution > publish > Distribute Tab

 

Action: Delete

Path: <page path needs to be deleted from publish)

Submit.

 

Repeat for the set of pages if you have many.

AG
Level 2
January 10, 2025

@anudeep_garnepudi The issue has been successfully resolved. Thank you for providing an effective solution!