title: Delete one slide from a Google Slide Presentation using Google Apps Script
body: <p>I need to use Google Apps Script, not the API. </p>
  
  <ul>
  <li>I create an empty presentation</li>
  <li>It seems newly created presentations always contains an empty slide by default</li>
  <li>I insert a slide (taken from an other prez) into the presentation.</li>
  </ul>
  
  <p>-> I'd like to delete this empty slide, so that the presentation contains only the slide I paste into it.</p>
  
  <p>The code I have:</p>
  
  <pre><code>var presentation = SlidesApp.create("my new presentation"); // creates an empty slide in the prez
  presentation.insertSlide(0,slides.pop()); // a slide from a deck of slides collected elsewhere
  presentation.getSlides().pop(); // here trying to delete the empty slide, doesn't work: the slide remains in the presentation.
  presentation.saveAndClose();
  </code></pre>