removing uneeded files for pages