# removeSection

Funnel / pyramid-only — remove a section by id or index.

Canonical: https://chart.syidax.com/docs/methods/removeSection/

<a id="definition"></a>

## Definition

```typescript
removeSection(idOrIndex: string | number): Promise<boolean>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `idOrIndex` | `string \| number` | Required |

Return type: `Promise<boolean>`. Call the method after element registration and await its Promise result.

<a id="related"></a>

## Related charts

- [sy-funnel-chart](https://chart.syidax.com/docs/components/funnel.md#method-removeSection)
- [sy-funnel-chart](https://chart.syidax.com/docs/components/pyramid.md#method-removeSection)
