remove intermediate file