removing old files from the template