Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Deactivating a page by replication is not removing the node from publish instance

Avatar

Level 2

Hi, 

I am trying to deactivate a page by the code replicator.replicate(currentSession, ReplicationActionType.DEACTIVATE , pathToDeactivate);.

This is deactivating the page in author instance. Also, it invalidates the content in publish but the node doesn't go away from the instance. It is still seen, but, clicking on it takes to 404. I have tried various methods and yet this issue exists. Please let me know if I am missing anything here to delete the node from publ on deactivating. 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Can you try using EventHandler. which will trigger upon deactivating page or changing property of node.

View solution in original post

3 Replies

Avatar

Level 10

Verify the publish instance log file.

Avatar

Correct answer by
Level 4

Can you try using EventHandler. which will trigger upon deactivating page or changing property of node.

Avatar

Level 2

Thanks for the reply. The property 'cq:lastReplicatedAction','cq:lastModified' etc get changed. The issue is the page is not getting removed from the publish instance.

I will look into eventhandler as well.