deletes a temporary file