List all files you can use UnifiedFile and UnifiedDirectory classes if I recall correctly. To check if the file is referenced I believe the SoftLink and SoftLinkCollection classes is the way to go. It was a couple of years since I used them last so might be wrong.
Hope it helps!
Hi. I want to list all files i VPP not used in EPiServer CMS 6.0 . How do i do this?
Is there a clear mapping in database?
All the best Harald Matz