Adding script for delete old file reference.
Minor fixes.
Merge pull request #2985 from openscholar/2769

Adding script for delete old file reference.