What is the difference between ReplicationActionType.DELETE and ReplicationActionType.DEACTIVATE? | Community
Skip to main content
LinearGradient
Level 6
October 16, 2015
Solved

What is the difference between ReplicationActionType.DELETE and ReplicationActionType.DEACTIVATE?

  • October 16, 2015
  • 5 replies
  • 2347 views

Hi,

What is the difference between ReplicationActionType.DELETE and ReplicationActionType.DEACTIVATE?

Also it would be a good idea to add this information to the JavaDoc page for ReplicationActionType.

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

To add more to bsloki feedback,    From publish stand point deactivate & delete are same. From author stand point there is a difference in terms of existence. 

5 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

To add more to bsloki feedback,    From publish stand point deactivate & delete are same. From author stand point there is a difference in terms of existence. 

Lokesh_Shivalingaiah
Level 10
October 16, 2015

As I understand, 

In DELETE, it deletes the node from repo and push/replicate the same to publisher aswell while in .DEACTIVATE, the content or the node will still be available in author but it gets out of publisher. so in future when needed that content can be published again !

LinearGradient
Level 6
October 16, 2015

Hi Sham,

Could you please confirm that replicator.replicate(session, ReplicationActionType.DELETE, node.getPath()):

  •  Deactivates the given node AND deletes it from the author?

We were using that based on this assumption, but I can see that it deactivates the node, but does not remove it from the author instance.

The only way we can deactivate and delete is by explicitly calling node.remove() on the node after deactivation.

Thanks,
Behrang

adobefor
Level 2
October 16, 2015

Hi, As I was browsing for an issue related to ReplicationActionType.DEACTIVATE that I am facing, I came across this post,. It would be great if you could see anything that would help me. I am trying to deactivate a page by  replicator.replicate(currentSession, ReplicationActionType.DEACTIVATE , pathToDeactivate); This is deactivating the page whereas the node is not getting deleted in the publish instance. Not sure if i am missing anything.

LinearGradient
Level 6
October 16, 2015

It should remove the node from the publish instance. Have a look at your replication queues and make sure they are not stuck. In CQ 5.6, the queue system is broken and very buggy out of the box. You must install a bunch of hot fixes to make it stable.