Facebook Workplace Connector 25.1
Facebook Workplace 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 25.1 | Last updated January 2025

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: Knowledge Discovery Facebook Workplace Connector 25.1

Topic Title: removeSection