Expand my Community achievements bar.

Unused DAM Assets

Avatar

Level 1

How to get all the unused DAM assets (their path and size) in AEM 6.2. Is there some kind of Xpath query or code?

5 Replies

Avatar

Level 10

This is discussed in this thread - see if this helps you -- find unused assets in aem

Avatar

Level 6

AEM OOB does not provide any tool find un used assets but day.cq provide good API's to implement this.

Implementation:

1. write a servlet to iterate all assets strating form /content/dam/project

2. to each asset  use ReferenceSearch ("The Adobe AEM Quickstart and Web Application.")  API

public Map<String,ReferenceSearch.Info> search(ResourceResolver resolver, String path)

3. If it has references then skip and it doesn't then you can add it to servlet response.

Hope that helps

Avatar

Administrator

Hi

Go to "localhost:4502/assets.html/content/dam" and click on Box icon on right hand side below the header -> click on Filters

On right hand side new tab would come up. Select publish status -> Unpublished , this will show all the un-published assets in the instance.

There are loads of filters that you can use.

1371159_pastedImage_1.png

I hope this would help you.

~kautuk



Kautuk Sahni