Here you can find the source of deleteTempFile(String fileId)
public static void deleteTempFile(String fileId)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void deleteTempFile(String fileId) { File tempFile = new File(getTempDirectory(), fileId); if (tempFile.exists()) { tempFile.delete();//w ww .j ava2s . c o m } } private static File getTempDirectory() { return new File(System.getProperty("java.io.tmpdir")); } }