Google Drive Connector 24.4
IDOL Google Drive Connector Help

# removeSection

The `removeSection` method removes a section from a document.

## Syntax

    removeSection( sectionNumber )

## Arguments

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`.

## Returns

Nothing.

## Example

    -- Example that removes the last section of a document
    if document:getSectionCount() > 0 then
       local lastSection = document:getSectionCount() - 1
       document:removeSection( lastSection )
    end

Copyright 2024 Open Text
Version 24.4 | Last updated September 2024

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL Google Drive Connector 24.4

Topic Title: removeSection