remove necessary file