---
title: "Clear active persona"
description: "Clear the active persona (revert to default agent behavior)."
---

> Documentation Index
> Fetch the complete documentation index at: https://truememory-docs.mvstg.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: AI Gateway API › Personas

`DELETE /personas/active`

Clear the active persona (revert to default agent behavior).

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Header parameters

- `X-On-Behalf-Of` (`clear_active_persona.header.X-On-Behalf-Of`; any of, optional)
  - any of: `string`, `null`
- `X-External-User-Id` (`clear_active_persona.header.X-External-User-Id`; any of, optional)
  - any of: `string`, `null`
- `X-App-Id` (`clear_active_persona.header.X-App-Id`; any of, optional)
  - any of: `string`, `null`

## Code samples

### cURL

```bash
curl --request DELETE \
  --url https://truememory-api.mvstg.com/personas/active \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/personas/active';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://truememory-api.mvstg.com/personas/active"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{
  "status": "cleared"
}
```

- `status` (`clear_active_persona.response.200.status`; string, optional)
  - default `"cleared"`

### 422

Validation Error

#### Example

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

- `detail` (`clear_active_persona.response.422.detail`; array<object>, optional)
  - `loc` (`clear_active_persona.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`clear_active_persona.response.422.detail.msg`; string, required)
  - `type` (`clear_active_persona.response.422.detail.type`; string, required)
  - `input` (`clear_active_persona.response.422.detail.input`; unknown, optional)
  - `ctx` (`clear_active_persona.response.422.detail.ctx`; object, optional)


Source: https://truememory-docs.mvstg.com/api/personas/active/delete/index.md
