remove unnecessary files for redirect