HubSpot Connector 23.3

# 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 2023 Open Text
Version 23.3 | Last updated June 2023

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL HubSpot Connector 23.3

Topic Title: removeSection