Skip to main content
Memory Stores

Delete a Memory

Delete a Memory entry from a Forward Memory Store.

Deletes a Memory. Deletion produces a version snapshot with operation=deleted. Historical version content is retained and remains available through the version endpoints. To physically remove the stored content bytes of a version, use Redact a Memory version.

Path

DELETE /api/v1/forward/memory_stores/{memory_store_id}/memories/{memory_id}

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or admin SAT>

Path parameters

ParameterTypeRequiredDescription
memory_store_idstringYesMemory Store ID (memstore_...).
memory_idstringYesMemory ID (mem_...).

Example request

curl -X DELETE "https://api.qoder.com/api/v1/forward/memory_stores/memstore_00mc7mukn7lkxr454tjd/memories/mem_00mc7mvag5u68kkfvxhy" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

HTTP 200 OK
{
  "id": "mem_00mc7mvag5u68kkfvxhy",
  "type": "memory_deleted",
  "deleted": true
}

Response fields

FieldTypeDescription
idstringID of the deleted Memory.
typestringAlways memory_deleted.
deletedbooleanWhether the Memory was deleted.

Notes

After deletion, the same path can be used to create a new Memory with a new mem_ ID. Memories in an archived Memory Store cannot be deleted. The endpoint returns 409.

Errors

HTTPTypeTrigger
400invalid_request_errorA path parameter is invalid.
401authentication_errorThe authentication token is missing or invalid.
403permission_errorThe caller cannot access the resource.
404not_found_errorThe Memory Store or Memory does not exist, or is not visible across users.
409conflict_errorThe Memory Store is archived.
500/502/503api_errorForward or a dependent service failed.