How to get unused Components list in aem by using existing groovy script console on aem local instance
I have existing script created as a base to get a list of all components that currently are being used under /content/<myProject>/en.
To execute the script, I build and installed the groovy script console in my local aem instance.
I need a solution for to get a list of all components under /apps/<myProject>/components. And then to get seperate list for unused Components.
Please give me a better solution to get result.