Remove the temporary file after creating.