Removes unnecessary template files