***

title: reset
slug: /reference/typescript/agents/swml-builder/reset
description: Reset the SWML document to an empty state.
max-toc-depth: 3
---------------------

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

Resets the document to an empty SWML structure (`{ version: '1.0.0', sections: { main: [] } }`).

## **Parameters**

This method takes no parameters.

## **Returns**

`void`

## **Example**

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

const builder = new SwmlBuilder();
builder.addVerb('answer', {});
builder.addVerb('play', { url: 'https://example.com/audio.mp3' });

builder.reset();
// Document is now empty: { version: '1.0.0', sections: { main: [] } }
```