---
schema_version: "1"
id: 34c7f5b71a14934ce2c93a08775b5d09230395dd1e58daeada0d4370cc56290e
title: Delete Memories
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/agentic-memory-context/references/agentic-memory-context-ref/agentic-memory-api-delete-memories.md
canonical_url: https://developer.salesforce.com/docs/data/agentic-memory-context/references/agentic-memory-context-api-ref/agentic-memory-api-delete-memories.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0fc7160e797df9027db4ed82e8725f7f80c8137fa8db842c3ec450d57f2b68e0
products:
  - Agentic Memory & Context
  - Data 360 Developer Documentation
---
# Delete Memories

Delete one or more memory entries. Identify each entry by its memory ID.

**URI:** `/api/v1/agentic/memory`

**Format:** `application/json`

**HTTP Method:** `DELETE`

**Authentication:** Bearer JWT

> **Note:** Deletion is permanent. You can't undo this action.

## Query Parameters

| Parameter    | Type   | Required | Description                                                   |
| ------------ | ------ | -------- | ------------------------------------------------------------- |
| profile_id   | String | Yes      | Profile ID of the Individual or User.                         |
| profile_type | String | Yes      | Type of profile. Values: `individual`, `employee`.            |
| category     | String | Yes      | Partition key for the memory entries, such as `PROFILE_FACT`. |

## Request Headers

| Header        | Required | Description         |
| ------------- | -------- | ------------------- |
| Authorization | Yes      | Bearer JWT token.   |
| Content-Type  | Yes      | `application/json`. |

## Request Body Schema

| Field               | Type   | Required | Description                                  |
| ------------------- | ------ | -------- | -------------------------------------------- |
| memories            | Array  | Yes      | Memory entries to delete. Minimum one entry. |
| memories[].memoryId | String | Yes      | Identifier of the memory entry to delete.    |

### Example Request

```json
{
  "memories": [{ "memoryId": "mem_abc123" }]
}
```

## Response Body Schema

| Field               | Type   | Description                             |
| ------------------- | ------ | --------------------------------------- |
| statusCode          | String | Operation status. Value: `deleted`.     |
| memories            | Array  | The deleted memory entries.             |
| memories[].memoryId | String | Identifier of the deleted memory entry. |
| memories[].content  | String | Empty for deleted entries.              |

### Example Response

**Status:** `200 OK`

```json
{
  "statusCode": "deleted",
  "memories": [{ "memoryId": "mem_abc123", "content": "" }]
}
```

## Error Codes

| Status Code | Description                                                     |
| ----------- | --------------------------------------------------------------- |
| 400         | Bad Request. Invalid request format or missing required fields. |
| 401         | Unauthorized. Invalid or missing JWT token.                     |
| 404         | Not Found. The specified memory entry doesn't exist.            |
| 500         | Internal Server Error.                                          |
