***

title: clearSections
slug: /reference/typescript/agents/context-builder/step/clear-sections
description: Remove all POM sections and direct text from this step.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-step]: /docs/server-sdks/reference/typescript/agents/context-builder/step

Remove all POM sections and direct text from this step, allowing it to be
repopulated with new content.

## **Parameters**

None.

## **Returns**

[`Step`][ref-step] -- Self for method chaining.

## **Example**

```typescript {7}
import { ContextBuilder } from '@signalwire/sdk';

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
const step = ctx.addStep('collect_info');
step.addSection('Task', 'Original instructions.');
step.clearSections();
step.addSection('Task', 'Updated instructions for this step.');
```