delete intermediate file