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

# Redact a memory version

> Permanently remove the content of a memory version.

`POST /api/v1/cloud/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact`

Permanently removes the stored content of a version. The version metadata remains for audit.

## Path parameters

| Parameter           | Description                   |
| ------------------- | ----------------------------- |
| `memory_store_id`   | The store ID (`memstore_...`) |
| `memory_version_id` | The version ID (`memver_...`) |

## Headers

| Header          | Required | Description    |
| --------------- | -------- | -------------- |
| `Authorization` | Yes      | `Bearer <PAT>` |

## Example request

```bash theme={null}
curl -X POST "https://api.qoder.com/api/v1/cloud/memory_stores/memstore_xxx/memory_versions/memver_xxx/redact" \
  -H "Authorization: Bearer $QODER_PAT"
```

## Response

Returns the redacted [Memory Version object](/cloud-agents/api/memory-stores/schemas#memory-version-object).

## Errors

| HTTP | Type                    | Trigger                         |
| ---- | ----------------------- | ------------------------------- |
| 404  | `not_found_error`       | Store or version does not exist |
| 409  | `invalid_request_error` | Already redacted                |
