Expand my Community achievements bar.

Delete page in author should auto unpublish the page

Avatar

Community Advisor

1/26/23

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):  
7 Comments

Avatar

Employee Advisor

1/27/23

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!

Avatar

Community Advisor

2/1/23

@Jörg_Hoh , @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.

Avatar

Administrator

2/1/23

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. 

Status changed to: Duplicate

Avatar

Level 4

7/23/23

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.

Avatar

Level 4

1/23/24

@kautuk_sahni@Jörg_Hoh,

 

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.