Skip to main content
New Member
Jun 22, 2015 12:16 PM UTC
Solved

ReplicationActionType.DELETE does't work

There is a thread related to this discussion. But I don't think the question has been satisfactorily answered even though it's closed now. So I thought it'd be a good idea to open the discussion again.

ReplicationActionType.DELETE

I encountered the similar issue that ReplicationActionType.DELETE doesn't actually delete anything from author even though I was pretty sure that I used administrator user to delete the node and there wasn't error in the server log. So I wanted to know whether ReplicationActionType.DELETE was designed to delete a CQ node from author and publish (if the replication is setup properly).  BTW, I use AEM 6.

For the time being, if anyone seeing the same issue, there is a workaround to resolve the problem by using node.remove().

Thanks,

Zeyin

varunmitra
varunmitraAccepted solution
Adobe Employee
Jun 22, 2015 2:22 PM UTC

Zeyin,

This happens to be a default behavior. As far as replication actions go, deactivate and delete are treated the same way. Both of these result in deactivating content on target server and do not delete content from the source system.

Please log a ticket with AEM support, if you think this is an issue and needs to be addressed.

Thanks

Varun

3 replies

varunmitra
Adobe Employee
varunmitraAdobe EmployeeAccepted solution
Adobe Employee
Jun 22, 2015 2:22 PM UTC

Zeyin,

This happens to be a default behavior. As far as replication actions go, deactivate and delete are treated the same way. Both of these result in deactivating content on target server and do not delete content from the source system.

Please log a ticket with AEM support, if you think this is an issue and needs to be addressed.

Thanks

Varun

Translate
Z_LaiAuthor
New Member
Jun 23, 2015 8:51 AM UTC

Hey Varun,

Thanks for your response.

I don't think this is an issue if the document is clear. I'm not surprised many developers would spend hours trying to work out why their application didn't delete the nodes even though the document said it would.

So yes, I will log a support ticket to see whether I can get some official response/confirmation.

Thanks

Zeyin

Translate
AmitVishwakarma
Community Advisor
Community Advisor
Jan 18, 2025 5:35 AM UTC

In AEM, the ReplicationActionType.DELETE does not automatically delete nodes from the author instance. Instead, it is used for replication purposes, where it marks content for deletion during the replication process, and the deletion actually happens during the publish process (from author to publish environment).

To fix the issue:

  1. Check Replication Configurations: Ensure that replication is correctly configured between the author and publish instances. Replication should be triggered to remove the content from the publish environment.

  2. Use node.remove() in Author: As a workaround, explicitly use node.remove() in your code to delete the content locally in the author instance. After that, replicate the deletion to the publish instance.

  3. Confirm User Permissions: Make sure the user has proper permissions to delete content in the repository.

In summary, ReplicationActionType.DELETE marks content for deletion, and the actual deletion happens via replication to the publish instance. For immediate deletion, use node.remove() on the author instance.

Translate
Amit Vishwakarma - Adobe Commerce Champion 2025 | 17x Adobe certified | 6x Adobe SME