Cannot Delete Conversations via REST API

#22868

Issue Details

10 days ago
No assignee
🐞 buggood first issue
inside-moinside-mo
opened 10 days ago
Author

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.6.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Create a Dify Chatbot
  2. Integrate this Chatbot into Typebot (self-hosted)
  3. Chat with the chatbot
  4. Attempt to delete the chat using the REST API command as provided in the documentation: curl -X DELETE '${SERVICE_API_URL:-https://dify-u46470.vm.elestio.app/v1/conversations/:conversation_id'
    --header 'Authorization: Bearer {api_key}'
    --header 'Content-Type: application/json'
    --data-raw '{ "user": "abc-123" }'

✔️ Expected Behavior

I am expecting the documented response: 204 No Content

❌ Actual Behavior

Instead, I am getting this error: { "errorMessage": "The resource you are requesting could not be found", "errorDescription": "Conversation Not Exists.", "errorDetails": { "rawErrorMessage": [ "404 - "{\"code\": \"not_found\", \"message\": \"Conversation Not Exists.\", \"status\": 404}\n"" ], "httpCode": "404" }, "n8nDetails": { "nodeName": "Delete Conversation", "nodeType": "n8n-nodes-base.httpRequest", "nodeVersion": 4.2, "itemIndex": 0, "time": "23.7.2025, 19:00:58", "n8nVersion": "1.102.4 (Self Hosted)", "binaryDataMode": "default", "stackTrace": [...] } }

However, the converstation does exist (see screenshot) and (I am very much assuming), was created via API integration if I am using Typebot, thus should be deletable via API too.

Image