Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a HTML document which includes links to various image, PDF, CSS, and JS files. How can I find which files are no longer used, and are safe to remove?

share|improve this question

2 Answers 2

http://validator.w3.org/checklink/ if you have an external page you're checking

And I'd suggest https://addons.mozilla.org/en-US/firefox/addon/532/ (firefox add-in) if you want to check an internal/intranet page.

share|improve this answer
I need to go in the opposite direction--the links in the page are fine, but I want to remove unnecessary "orphaned" files which aren't linked to. –  Nick Oct 7 '10 at 15:26
Now that's a more interesting question :) How many are there? Could you remove them all, run the validator and add the ones you're using back in? for the css and js files, you might want to try a text search on the folder of the contents. –  Dan Williams Oct 7 '10 at 17:44

Xenu is a Windows application that can do this. Its primary function is to check for broken links, but it can also produce a report of any files on your webserver that aren't linked to. It uses your FTP access to do that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.