You can use the Execute Script service. Try this script:
-----------------------------
import java.lang.String;
import java.util.Properties;
String tempdir = new String();
tempdir=System.getProperty("java.io.tmpdir");
patExecContext.setProcessDataStringValue("/process_data/stringVar",tempdir);
------------------------------
The script requires that a string process variable named stringVar exists.
After you get the temp directory, use File Utilities service to create/delete directories and files.
Execute Script
http://livedocs.adobe.com/livecycle/8.2/wb_help/000580.htmlFile Utilities
http://livedocs.adobe.com/livecycle/8.2/wb_help/000582.htmlscott