Logical deletion of messages #4757

Closed
opened 2026-02-21 18:07:53 -05:00 by yindo · 0 comments
Owner

Originally created by @Lxx-c on GitHub (Jul 24, 2024).

Originally assigned to: @takatost on GitHub.

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I want to add a logical deletion field to the conversation messages. I checked model.py and there is no such field. I would like to know if I add this field, will it be overwritten when I merge the code and perform a flask db upgrade next time? Or do you have plans to add this feature? Because sometimes some questions involve sensitive information. If it is called by a third-party user through the API SERVER, and the third-party user performs a logical deletion of the session record locally while we perform a physical deletion here, it will be difficult to verify when troubleshooting.



2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @Lxx-c on GitHub (Jul 24, 2024). Originally assigned to: @takatost on GitHub. ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. I want to add a logical deletion field to the conversation messages. I checked model.py and there is no such field. I would like to know if I add this field, will it be overwritten when I merge the code and perform a flask db upgrade next time? Or do you have plans to add this feature? Because sometimes some questions involve sensitive information. If it is called by a third-party user through the API SERVER, and the third-party user performs a logical deletion of the session record locally while we perform a physical deletion here, it will be difficult to verify when troubleshooting.   ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [x] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:07:53 -05:00
yindo closed this issue 2026-02-21 18:07:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4757