If it's a common activity. It should be trivial to achieve your requirement, by writing a tiny custom service in AEM servlet to do the deactivation task[1] [2].
Alternatively, if it's a one off activity a simple groovy script could do the deactivation quite well too [3] [4].
If it's a common activity. It should be trivial to achieve your requirement, by writing a tiny custom service in AEM servlet to do the deactivation task[1] [2].
Alternatively, if it's a one off activity a simple groovy script could do the deactivation quite well too [3] [4].