***

title: removeMetadata
slug: /reference/typescript/agents/function-result/remove-metadata
description: Remove one or more keys from the current function's metadata store.
max-toc-depth: 3
---------------------

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

[functionresult]: /docs/server-sdks/reference/typescript/agents/function-result

Remove one or more keys from the current function's metadata store. Maps to the
`unset_meta_data` SWML action.

## **Parameters**

<ParamField path="keys" type="string | string[]" required={true} toc={true}>
  A single key string or a list of key strings to remove from metadata.
</ParamField>

## **Returns**

[`FunctionResult`][functionresult] -- `this`, for chaining.

## **Example**

```typescript {4}
import { FunctionResult } from '@signalwire/sdk';

const result = new FunctionResult()
  .removeMetadata(['temp_field']);
```