Finding unused files

In the course of developing a site on my local server I end up with a fair number of files that are no longer required, having been superseded. I don’t want to upload these to the production server.

I expect there’s an application somewhere that will help me identify files that are no longer used by the site. Can anyone recommend one, please ?