AEM WCM asset clean up | Community
Skip to main content
Level 1
June 22, 2026
Question

AEM WCM asset clean up

  • June 22, 2026
  • 2 replies
  • 73 views

We are preparing assets for migration and need to deactivate and delete assets and folder that aren’t referenced.

Is there an automated to do this, including reporting on the assets deleted and retained?

    2 replies

    avesh_narang
    Level 4
    June 23, 2026

    hi ​@Melindakp  

    Theres no single out‑of‑the‑box feature that handles everything in one go.

    What we typically do in projects is build a small custom solution around this. The idea is to combine a few things : 

    • First identify which assets are actually being used and which aren’t
    • Then use AEM’s replication APIs to deactivate (unpublish) the unused ones
    • Handle deletion in a controlled way (usually with a dry run or staging step)
    • And finally generate a report so you have full visibility into what was retained vs removed

    So in short — yes ,you can automate the entire process but it usually comes together as a custom workflow or scheduled job rather than a ready-made feature.

    Please let me know , if detailed steps are required, I can share the same as well.

     

    Thanks 

    MelindakpAuthor
    Level 1
    June 23, 2026

    Yes, detailed steps would be super helpful!

    rk_pandian
    Level 4
    June 23, 2026

    Hi ​@Melindakp , you can automate part of your requirement:

    1. Finding the assets that are not referenced - this can be done by the ACS commons - manage controlled processes
    2. Deletion of assets - this will require manual work (a custom workflow /MCP / sling job etc)

    Please see the below links for more information.

    https://kiransg.com/2021/11/10/aem-asset-repo-cleanup-acs-commons-renovator/

    https://kiransg.com/2021/11/08/aem-publish-unpublish-delete-list-of-pages-mcp-process/

    Hope this helps!

     

    Regards,

    Ramkumar