From GMWiki, the Gamemaker Wiki.
temp_directory is a built-in read-only variable that contains the path to the temporary directory created for the game. Here you can store files that needs to be deleted after the game ends, which will be done automaticly.