# Forget a fact

> Delete one fact. Idempotent: deleting a fact that is not there, or no longer there, still answers 204. Deletes are never refused for quota reasons.

`DELETE https://api.zavu.dev/v1/memory/{memoryId}`

Delete one fact. Idempotent: deleting a fact that is not there, or no longer there, still answers `204`. Deletes are never refused for quota reasons.

## Parameters

- `memoryId` (path, string, required): Memory (fact) ID.
- `scope` (query, string): Which scope to address: `contact:<contactId>`, `conversation:<conversationId>`, or omitted for the project scope. Note the asymmetry with `POST /v1/memory` and `POST /v1/memory/search`, which take the scope in the request BODY as `scope` plus `contactId`/`conversationId`. Every other Memory endpoint takes it here.

## Responses

### 204

Fact deleted.

### 400

Malformed memory id or `scope`.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 401

Unauthorized.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

## Example

```bash
curl -X DELETE "https://api.zavu.dev/v1/memory/memory_abc123" \
  -H "Authorization: Bearer $ZAVUDEV_API_KEY"
```

```typescript
import Zavudev from "@zavudev/sdk";

const zavu = new Zavudev({ apiKey: process.env.ZAVUDEV_API_KEY });

await zavu.memory.delete("memory_abc123");
```
