---
title: "Delete memory"
method: DELETE
path: "/memories/delete/{source}/{resource_id}"
tags: ["Memories"]
---

# Delete memory

`DELETE /memories/delete/{source}/{resource_id}`

Delete a memory and its associated chunks from the index.

This removes the memory completely from the vector index and database.
The operation deletes:
1. All chunks associated with the resource (including embeddings)
2. The resource record itself

Args:
    source: The document provider (e.g., gmail, notion, vault)
    resource_id: The unique identifier of the resource to delete
    api_token: Authentication token

Returns:
    MemoryDeletionResponse with deletion details

Raises:
    DocumentNotFound: If the resource doesn't exist or user doesn't have access

## Path parameters

- `source` 'reddit' | 'notion' | 'slack' | 'google_calendar' | 'google_mail' | 'box' | 'dropbox' | 'github' | 'google_drive' | 'vault' | 'web_crawler' | 'trace' | 'microsoft_teams' | 'gmail_actions' | 'granola' | 'fathom' | 'linear' | 'hubspot' | 'salesforce' | 'coda', required
- `resource_id` string, required

## Response `200`

Successful Response

- MemoryDeletionResponse
  - `success` boolean, required
  - `resource_id` string, required
  - `source` 'reddit' | 'notion' | 'slack' | 'google_calendar' | 'google_mail' | 'box' | 'dropbox' | 'github' | 'google_drive' | 'vault' | 'web_crawler' | 'trace' | 'microsoft_teams' | 'gmail_actions' | 'granola' | 'fathom' | 'linear' | 'hubspot' | 'salesforce' | 'coda', required
  - `chunks_deleted` integer, required
  - `message` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-20** `d7c846c2cd79` — 1 warning, 1 info
  - added the new `coda` enum value to the `source` response property for the response status `200`
  - added the new enum value `coda` to the `path` request parameter `source`
- **2026-05-18** `6eb290df2d3b` — 2 warning, 2 info
  - added the new `hubspot` enum value to the `source` response property for the response status `200`
  - added the new `salesforce` enum value to the `source` response property for the response status `200`
  - added the new enum value `hubspot` to the `path` request parameter `source`
  - added the new enum value `salesforce` to the `path` request parameter `source`
- **2026-05-05** `023174b0253c` — 3 warning, 3 info
  - added the new `fathom` enum value to the `source` response property for the response status `200`
  - added the new `granola` enum value to the `source` response property for the response status `200`
  - added the new `linear` enum value to the `source` response property for the response status `200`
  - added the new enum value `fathom` to the `path` request parameter `source`
  - …2 more

[Change history](https://skmtc.dev/hyperspell/apis/hyperspell-api/changes/memories/delete/:source/:resource_id/delete.md)

---

[API](https://skmtc.dev/hyperspell/apis/hyperspell-api.md) · [All operations](https://skmtc.dev/hyperspell/apis/hyperspell-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hyperspell/hyperspell-api/revisions/d7c846c2cd79/schema)
