title: How to delete all temp files which created by createTempFile when exit an App in android?
body: <p>I use the following code to create some temp files, and wrapped tem as inputsteam to send to client side.</p>
  
  <p>I understand that the temp files can be deleted automatically by android system when disk space low.</p>
  
  <p>But I hope to I can delete the temp files by myself when I exit the App, how can I do? Thanks! </p>
  
  <p><strong>Code</strong> </p>
  
  <pre><code>File outputDir = context.getCacheDir(); // context being the Activity pointer
  File outputFile = File.createTempFile("prefix", "extension", outputDir);
  </code></pre>