***

title: removeStep
slug: /reference/typescript/agents/context-builder/context/remove-step
description: Remove a step from this context.
max-toc-depth: 3
---------------------

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

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

Remove a step from this context entirely.

## **Parameters**

<ParamField path="name" type="string" required={true} toc={true}>
  Name of the step to remove.
</ParamField>

## **Returns**

[`Context`][ref-context] -- Self for method chaining.

## **Example**

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

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
ctx.addStep('greet').setText('Greet the caller.');
ctx.addStep('obsolete_step').setText('This step is no longer needed.');
ctx.addStep('farewell').setText('Thank the caller and say goodbye.');

ctx.removeStep('obsolete_step');
```