Change AEM Deletion Functionality

Jineet_Vora

12-05-2019

There is a requirement from business to change the default AEM deletion functionality.

Current functionality: When an already activated asset/web page is deleted from author instance, AEM first deactivates the asset/web page (results in deletion of the same from Publisher instance) and then it deletes the page from author.

Expected functionality: When an already activated asset/web page is deleted from author instance, AEM should not deactivate the asset/web page from publisher and instead only delete the page from author instance.

Although, AEM is following a good practice to deactivate first from publisher and then delete from author which will not result in creation of ghost pages. Business wants to follow an approach where we can avoid unintentional deletes from authors/producers which doesn't result in deletion of the content from all the instances.

I kind off reverse engineered the AEM delete process which executes a servlet call /bin/wcmcommand with parameter 'deletePage', however it is the core functionality and I want to understand the best approach before making any change.

P.S. We are using AEM v6.3

Any response will be appreciated.

Thank you,

Jineet

Replies

Highlighted

AdobeID24

17-07-2020

Hi @arunpatidar26  

I need to disable or enable "delete button" on some basis ...

 

for example :  for pdf docx ppt these kind of assets i want "delete button" to be disabled 

and for multimedia and images i want "delete button " to be enabled