Adding script for delete old file reference.

#2769