Hi @SivaNa3
You can refer the groovy scripts shared by @lukasz-m & @AmitVishwakarma .
If you are doing a content migration project or need to do this more frequently, you can also explore using https://github.com/valtech/aem-easy-content-upgrade . Its built on top of groovy console and has addi...