removes surplus file