title: Deleting all content down from the second horizontal line in a document
body: <p>I'm trying to create a script to delete all text/content downwards from a page. Below you can see the current document. </p>
  
  <p><a href="https://i.stack.imgur.com/YSrcz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YSrcz.png" alt="enter image description here"></a></p>
  
  <p>Currently, I have the script set-up so that it deletes everything down and including from a text of, "STARTHERE". However, I want it to delete down from the second horizontal line in the image, however, not including the line. </p>
  
  <ol>
  <li>Any ideas on how to delete down from the second horizontal line?</li>
  <li>What does deleteText startOffset and endOffsetInclusive actually mean? Is it like a line number or? </li>
  </ol>
  
  <p>Previous Script:</p>
  
  <pre><code>function removeText() {
      var body = DocumentApp.getActiveDocument().getBody();
      var rangeElement = body.editAsText();
      var start = "STARTHERE";
      var end = "ENDHERE";
      var rangeElement1 = DocumentApp.getActiveDocument().getBody().findText(start);
      var rangeElement2 = DocumentApp.getActiveDocument().getBody().findText(end);
      if (rangeElement1.isPartial()) {
         var startOffset = rangeElement1.getStartOffset();
         var endOffset = rangeElement2.getEndOffsetInclusive();
         rangeElement1.getElement().asText().deleteText(startOffset,endOffset);
      }
  }
  </code></pre>