[PR #23591] fix delete conversations via Api and delete conversations from db as well #30319

Closed
opened 2026-02-21 20:47:16 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/23591

State: closed
Merged: Yes


Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Fix https://github.com/langgenius/dify/issues/22868
close https://github.com/langgenius/dify/pull/22445

Screenshots

Before After
... ...

before
eventough we have deleted conversation, it still used to show in log pages and entry is also there in db

Screenshot 2025-08-08 at 1 41 58 AM Screenshot 2025-08-08 at 1 42 31 AM Screenshot 2025-08-08 at 1 49 37 AM

after
if we delete conversation, it will not show in log page and entry in db will also be deleted
Screenshot 2025-08-08 at 2 25 31 AM
Screenshot 2025-08-08 at 2 26 07 AM
Screenshot 2025-08-08 at 2 26 36 AM

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/23591 **State:** closed **Merged:** Yes --- > [!IMPORTANT] > > 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) > 2. Ensure there is an associated issue and you have been assigned to it > 3. Use the correct syntax to link this PR: `Fixes #<issue number>`. ## Summary <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Fix https://github.com/langgenius/dify/issues/22868 close https://github.com/langgenius/dify/pull/22445 ## Screenshots | Before | After | |--------|-------| | ... | ... | before eventough we have deleted conversation, it still used to show in log pages and entry is also there in db <img width="1027" height="521" alt="Screenshot 2025-08-08 at 1 41 58 AM" src="https://github.com/user-attachments/assets/e6fbe86c-b28d-4b4b-8923-89fe7310429b" /> <img width="1682" height="460" alt="Screenshot 2025-08-08 at 1 42 31 AM" src="https://github.com/user-attachments/assets/7da3ea6c-8945-47ca-a676-0769ac78520e" /> <img width="1713" height="662" alt="Screenshot 2025-08-08 at 1 49 37 AM" src="https://github.com/user-attachments/assets/eb2fbac5-8942-469e-a5b5-5cfeb11e241a" /> after if we delete conversation, it will not show in log page and entry in db will also be deleted <img width="1021" height="515" alt="Screenshot 2025-08-08 at 2 25 31 AM" src="https://github.com/user-attachments/assets/1f0bcb94-7119-460d-9f31-1463a83316a6" /> <img width="1902" height="424" alt="Screenshot 2025-08-08 at 2 26 07 AM" src="https://github.com/user-attachments/assets/69fd61b7-4539-4cf0-90b9-d03d4b73e670" /> <img width="1207" height="551" alt="Screenshot 2025-08-08 at 2 26 36 AM" src="https://github.com/user-attachments/assets/8136540a-b0ef-4630-80b2-21e6cb379cbf" /> ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:47:16 -05:00
yindo closed this issue 2026-02-21 20:47:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30319