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

# Forget Fact

> Delete a fact from memory

## Overview

Deletes one fact by its id.

> [!NOTE]
>
> Changes data, so it needs a key that isn't read-only.

Operation name: `fact.forget`.

## Authorization

**x-api-key** `string` *required*

Your Composer API key

## Headers

**Content-Type** `string` *required*

Must be set to application/json

## Body

**fact\_id** `string` *required*

The fact to delete, from List Facts or Set Fact.

```json Example theme={null}
"fact_id": "e2d1c0b9-a8f7-4e6d-5c4b-3a2f1e0d9c8b"
```

```json Example Request theme={null}
{
  "fact_id": "e2d1c0b9-a8f7-4e6d-5c4b-3a2f1e0d9c8b"
}
```

***

## Response

**removed** `boolean`

True if a fact was deleted, false if none had that id.

```json Example Success Response theme={null}
{
  "removed": true
}
```

***

## Example cURL

```bash cURL theme={null}
curl --request POST 'https://composer.personal.ai/lab/api/v1/op/fact.forget' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{"fact_id": "e2d1c0b9-a8f7-4e6d-5c4b-3a2f1e0d9c8b"}'
```

***

## Error Codes

| Code | Description |
| - | - |
| 400 | The body doesn't match the fields above, or the operation failed. The response body says why. |
| 401 | Missing or invalid API key |
| 403 | This key isn't allowed to call this operation (for example, a read-only key) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.