AnsweredAssumed Answered

How to delete file link whose destination is NULL?

Question asked by deepak1987 on Oct 26, 2012
Latest reply on Oct 30, 2012 by amandaluniz_z

I want to delete all file links whose destination is NULL. I tried through Lucene query to get all Links which is:
TYPE:"app:filelink" AND ISNULL:"cm:destination"

The above query doesn't work for me. It returns 0 rows.

The other approach is get all file links by TYPE:"app:filelink" in ResultSet and do iteration using for loop to check if destination is null, which is not the best way.

Please help me on this.