Changed the temp file deletion method to accept a list of files to delete.