remove duplicated files when template is not used