Assets not being used | Community
Skip to main content
FernandoUchiyam
Level 3
Jan 15, 2019 4:40 PM UTC
Solved

Assets not being used

Hi guys,

Is there a way to find all unused DAM assets?

Our assets are increasing in size and we want a way to delete all unused stuff.

We have assets in our DAM (jpg, png, etc) being acessed by:

a) Adobe AEM normal pages (reference by components or dialog properties);

b) Referenced by url property of less (css) code;

c) External systems directly acessing our assets through http requests.

I think the only way to find the unused assets is by checking if the asset had no HTTP requests since X date.

Does AEM provide a way to do that?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Jan 15, 2019 11:32 PM UTC

To support your use case, you will have to build the custom solution to store all the reference points within the repo and then use the query to build the report.

7 replies

FernandoUchiyam
Level 3
Jan 16, 2019 12:16 PM UTC

Ok, sorry, now I see, it is clear to me.

Because we have the dispatcher and because we can also have a CDN like Akamai, not all requests reach the Adobe AEM server, making it impossible to have a log with all the requests to the asset.

Translate
FernandoUchiyam
Level 3
Jan 16, 2019 11:59 AM UTC

In theory there is a way, If we had a log file recording every access to the asset.

It would be possible with a log like that.

Translate
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Jan 15, 2019 11:32 PM UTC

To support your use case, you will have to build the custom solution to store all the reference points within the repo and then use the query to build the report.

Translate
smacdonald2008
Level 10
Jan 15, 2019 5:45 PM UTC

If a third-party app is referencing a specific asset by its URL - I do not believe there is a way to detect that.

Translate
Gaurav-Behl
Level 10
Jan 15, 2019 5:26 PM UTC

Customize this   aem-samples/ReferencedAssetsServlet.java at master · Adobe-Marketing-Cloud/aem-samples · GitHub

or find out the search criteria e.g. replication action is null or deactivated with date range or something more specific and write SQL2 query for same (potentially a joined query)

for third parties, there is no easy way if you don't have access to their hosting server/repo - probably scan logs via some script or tools like splunk etc. and check for that asset name/url within a date range

Translate
FernandoUchiyam
Level 3
Jan 15, 2019 4:53 PM UTC

It seems that the OOTB feature is from the classic UI.

Also, it doesn't detect access by an external system. We have other systems directly acessing our DAM, and we want to consider the asset as being used if these other system are acessing the asset.

Translate
smacdonald2008
Level 10
Jan 15, 2019 4:42 PM UTC

See this related thread -- find unused assets in aem

Translate