title: How to delete one image from the array $_FILES using previews - Javascript / PHP
body: <p>I want to create a multiple image uploader inside a form with preview and delete options. I am using php as part of my backend.</p>
  
  <p>The part of the preview is easy. I've followed the explanation in </p>
  
  <p><a href="https://stackoverflow.com/questions/37205438/image-upload-with-preview-and-delete-option-javascript-jquery">Image Upload with preview and Delete option - Javascript / Jquery</a> </p>
  
  <p>My problem comes when I want to delete an image. It is deleted from the preview but not from the e.target.files array, so when I access the variable $_FILES in php, I obtain all the images, including the ones removed.</p>
  
  <p>As you can see in the picture, if I remove two images from the initial 5, there is still a message that says that I have 5 files.</p>
  
  <p><img src="https://i.stack.imgur.com/gGKLa.png" alt=""></p>
  
  <p>I would like to know how can I remove those images completely, so in php I only access the images that have not been removed.</p>
  
  <p>Thanks.</p>