The removeSection method removes a section from a document.
removeSection( sectionNumber )
| Argument | Description | 
|---|---|
| sectionNumber | (number) A zero-based index that specifies the section to remove. For example, to remove the second section, set this argument to 1. | 
Nothing.
-- Example that removes the last section of a document if document:getSectionCount() > 0 then local lastSection = document:getSectionCount() - 1 document:removeSection( lastSection ) end
|  |