Closed Liupuzhuo closed 3 months ago
It seems like you're encountering an issue where Dify is not allowing you to delete a dataset because it is still associated with some apps. Here are a few steps you can take to resolve this:
Check the app_dataset_joins
Table: Ensure that there are no lingering associations between the dataset and any apps. You can do this by inspecting the app_dataset_joins
table, which links app_id
and dataset_id
together.
Check the app_model_configs
Table: Verify that there are no configurations related to the dataset in the app_model_configs
table. This table contains dataset configurations for apps.
Enable Debug Logs: Enable specific logs and debug information to get more insight into why the dataset deletion is failing. The clean_dataset_task
function and the DatasetService
class provide detailed logging that can help identify the issue.
Update to the Latest Version: Ensure that you are using the latest version of Dify. Some issues related to dataset deletion have been fixed in recent updates. Pull the latest Docker image to get these fixes.
For more detailed steps on checking the associations and enabling debug logs, you can refer to the relevant parts of the schema and logging mechanisms mentioned in the sources [1][2][3][4].
If the issue persists, you might want to look into similar discussions and issues that have been reported:
To continue talking to Dosu, mention @dosu.
See image below
见下图
seems like it was cleared all associations
问题依然存在 无任何关联应用 0.6.12
Dify version
0.6.11
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Maybe someone can help me this issue?
When I delete the knowledge base, dify gets an error: The dataset is being used by some apps. Please remove the dataset from the apps before deleting it.
I have cleared all associations for this dataset and delete all data in it.
And I have restart docker, it was useless....
✔️ Expected Behavior
I want to delete the knowledge dataset
❌ Actual Behavior
No response