We are trying to cleanup stale content and trying to figure out how to best identify content that has not been accessed in say 6 months or a year.
Try below APIs with LastActivityDate. You get it back as a property with date value. Only the problem is you have to iterate each Content, check the date and take appropriate action. I don't see any way to directly filter the results based on something like LastActivityDate > 30 days or so.
For All contents:
For Place wise Contents
Hope this helps.
In conjunction with Raj Vachhani 's response. You can use DES to identify the most active pieces and insure that anything left is in fact below a given threshold of activity.
We are working on a new document for DES in the coming month,
Data Export Service (DES) - Common Queries (WIP)
which has a similar request we've seen from other customers.
Retrieving data ...