Removing unnecessary files for pages