-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to delete empty knowledge base #5747
Comments
The error message you're encountering, "The dataset is being used by some apps. Please remove the dataset from the apps before deleting it," is likely due to the system still marking the knowledge base as "in use" even after the associations have been removed. This can happen due to stale data in the cache or other internal flags not being updated correctly. Steps to Troubleshoot and Resolve:
By following these steps, you should be able to identify and resolve the issue preventing the deletion of the empty knowledge base. |
pls double confirm are there any apps linked this Knowledge |
facing a similar issue, not able to delete a knowledge base. Getting error saying this knowledge base is associated to an app even though that app has been deleted |
it has been opimized by below pr: |
have pulled the latest docker image, this issue has been fixed, thank you |
Self Checks
Dify version
0.6.12
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Description:
When attempting to delete an empty knowledge base, I encountered an error that states, "The dataset is being used by some apps. Please remove the dataset from the apps before deleting it." Previously, this knowledge base was associated with some apps, but the associations have since been removed. Despite this, the knowledge base cannot be deleted.
I believe this issue might be a rare occurrence, as I have successfully deleted knowledge bases under similar circumstances in the past.
✔️ Expected Behavior
The empty knowledge base, having no associations with apps, should be deletable without errors.
❌ Actual Behavior
An error message is shown, preventing the deletion of the empty knowledge base as if it is still being used by some apps.
The text was updated successfully, but these errors were encountered: