I use the following code to create some temp files, and wrapped tem as inputsteam to send to client side.
I understand that the temp files can be deleted automatically b
Unfortunately it appears you have to delete these files one by one, by previously saving them in an array.
That being said, if you check Android Developers page on this issue it makes it as if you could delete the cached files "on a regular basis and also regularly delete other files you no longer need". However I don't think there is an explanation on how to do it.