DELETE
/
delete_user_memory
curl --request DELETE \
  --url https://api.usecortex.ai/delete_user_memory \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "memory_id": "memory_123"
}'
true

Deletes a specific memory for a user.

Sample Request

curl --location 'https://api.usecortex.ai/delete_user_memory' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "memory_id": "{MEMORY_ID}"
  }'

🔐 Headers

  • Authorization: Bearer token (Firebase token)
  • accept: application/json
  • Content-Type: application/json

🧾 Body Parameters

  • memory_id (string, required): Echo memory ID to delete

📋 Functionality

  • Takes an echo memory ID from the request body
  • Extracts user credentials from Firebase token
  • Calls the delete function with the memory ID and user context
  • Returns confirmation of deletion success/failure
  • Logs errors and returns false on failure

📤 Response

Returns a boolean indicating success (true) or failure (false) of the deletion operation.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200 - application/json

Memory deletion result

Success (true) or failure (false) of the deletion operation

DELETE
/
delete_user_memory
curl --request DELETE \
  --url https://api.usecortex.ai/delete_user_memory \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "memory_id": "memory_123"
}'
true

Deletes a specific memory for a user.

Sample Request

curl --location 'https://api.usecortex.ai/delete_user_memory' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "memory_id": "{MEMORY_ID}"
  }'

🔐 Headers

  • Authorization: Bearer token (Firebase token)
  • accept: application/json
  • Content-Type: application/json

🧾 Body Parameters

  • memory_id (string, required): Echo memory ID to delete

📋 Functionality

  • Takes an echo memory ID from the request body
  • Extracts user credentials from Firebase token
  • Calls the delete function with the memory ID and user context
  • Returns confirmation of deletion success/failure
  • Logs errors and returns false on failure

📤 Response

Returns a boolean indicating success (true) or failure (false) of the deletion operation.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200 - application/json

Memory deletion result

Success (true) or failure (false) of the deletion operation