deletes temporary file after it has successfully been downloaded