Phpexcel上传后如何删除?

I've began using phpexcel and have managed to upload an excel file, read it, and insert it into my database but I've noticed that the file I've read was still present. I was under the impression that the file was only temporary. How would I go about deleting the uploaded file?

If you can upload it to an folder then you can apply this you can delete this by using unlink('filename'); it may help you

You can delete file with unlink("filename") ; or I advice you to not even download the file. do not use move_uploaded_files(); use your temp file to get data. so no file gonna save and there is nothing to delete. see this.

  $tempXLSFile = $_FILES['file']['tmp_name']; 
     $data = new Spreadsheet_Excel_Reader($tempXLSFile);
    //your code