title: Deleting files from Google Drive with Google Apps Script
body: <p>I have seen many topics talking about this problem, and I have been struggling with it for a week now: is there a real way to delete/remove/put to trash files from Google Drive using a script?</p>
  
  <p>I have to upload CSV files on Drive to copy some of their rows into a Spreadsheet, and I would like to have these files deleted after use. I used <code>DriveApp.remove(file.id)</code>, <code>Drive.Files.remove(file.id)</code> and, even though they did nothing on my documents, I did not get any error message...</p>
  
  <p>I can use a method taking filenames, fileIDs in argument, whatever is needed to perform this deletion.</p>