remove middle file