delete file at end of function