***

title: removeGlobalData
slug: /reference/typescript/agents/function-result/remove-global-data
description: Remove one or more keys from the global session data.
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 global session data.

## **Parameters**

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

## **Returns**

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

## **Example**

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

const result = new FunctionResult()
  .removeGlobalData(['temp_key', 'old_data']);
```