> ## Documentation Index
> Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# removeRouteMock

> Remove a previously installed route mock by key.

Pair with the `saveAs` key set on the corresponding `mock` step. Omit `key` to
remove every route mock currently installed.

## Parameters

| Parameter | Type      | Required | Description                                                           |
| --------- | --------- | -------- | --------------------------------------------------------------------- |
| `key`     | `string`  | No       | Key set on the corresponding `mock` step. Omit to remove all mocks.   |
| `saveAs`  | `string`  | No       | Name of the variable to write this step's return value to.            |
| `retries` | `number`  | No       | Number of times to retry the step on failure before failing the test. |
| `skipped` | `boolean` | No       | Skip this step at execution time.                                     |

## Shorthand

Key as a single string.

```yaml theme={null}
- removeRouteMock: TODOS_MOCK
```

## Examples

```yaml theme={null}
- removeRouteMock:
    key: TODOS_MOCK
```

Remove every installed route mock at once:

```yaml theme={null}
- removeRouteMock: {}
```

## Related

* [Request mocking](/platforms/web/request-mocking)
* [Test format](/core-concepts/test-format)
