9 Replies Latest reply on Jan 10, 2017 1:10 AM by jakec88782761

    Can't delete all section

    jakec88782761 Level 1

      Hi guys,

       

      Why does ID not allow you to delete all sections.

       

      for ( i = allSections.length; i > 0; i-- ) {

          allSections[i].remove();

          }

       

      This says undefined is not an object but I have 2 sections in my document.

       

      allSections = doc.sections.everyItem().getElements();