title: Deleting images in Google sheet via script error
body: <p>I probably will get downvoted for this but I can't do anything else. I searched, read and tried SOOOO many things. I am new at both Javascript and Google platform.</p>
  
  <p>I have this piece of code that keeps telling me </p>
  
  <blockquote>
    <p>"Missing name after . operation". </p>
  </blockquote>
  
  <p>Even though <code>.delete</code> and <code>.getAltTextTitle</code> are both shown in autocomplete suggestion</p>
  
  <pre><code>  var images = sheet.getImages();
    var img = images[0];
    Logger.log(img.getAltTextTitle()); //This is fine
    img.delete(); //This throw error
  </code></pre>
  
  <p>In the meanwhile, I have this piece of code working totally fine. I don't know what to do. They look the same to me.</p>
  
  <pre><code>  var img = sheet.getImages()[0];
    var imgH = img.getHeight();
    var imgW = img.getWidth();
    var maxW = 700;
    var newImgH = Math.round(imgH*(maxW/imgW));
    img.setWidth(maxW);
    img.setHeight(newImgH);
  </code></pre>
  
  <p>Unrelated topic, where do I get the documentation for <code>sheet.getImages()</code> because I just couldn't find it <a href="https://developers.google.com/apps-script/reference/spreadsheet/sheet" rel="nofollow noreferrer">here</a></p>