Delete temporary files after opening