ODBC Connector 24.2

# 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.2 | Last updated March 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 ODBC Connector 24.2

Topic Title: removeSection