Skip to main content
DELETE
/
api
/
chat-history
/
chats
Delete conversations
curl --request DELETE \
  --url https://www.memoryplugin.com/api/chat-history/chats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
{
  "deleted": [
    "<string>"
  ],
  "count": 123
}

Overview

Delete one or more conversations and all associated data (messages, chunks, and vector embeddings). This action is irreversible.

Example

curl -X DELETE https://www.memoryplugin.com/api/chat-history/chats \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": ["conv-id-1", "conv-id-2"]
  }'

Authorizations

Authorization
string
header
required

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

Body

application/json
ids
string[]
required

Array of conversation IDs to delete.

Response

Conversations deleted

deleted
string[]

IDs of successfully deleted conversations.

count
integer

Number of conversations deleted.