Skip to content
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

KB original file dont delete #5220

Open
4 tasks done
zyc130130 opened this issue Jun 14, 2024 · 3 comments · May be fixed by #5882
Open
4 tasks done

KB original file dont delete #5220

zyc130130 opened this issue Jun 14, 2024 · 3 comments · May be fixed by #5882
Assignees
Labels
🐞 bug Something isn't working

Comments

@zyc130130
Copy link

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.9

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Delete the knowledge base files, but the original files are still present in the "docker" directory under the "volumes" section.

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

@dosubot dosubot bot added the 🐞 bug Something isn't working label Jun 14, 2024
Copy link

dosubot bot commented Jun 14, 2024

Hey @zyc130130! I'm here to assist you with any bugs, questions, or contributions. Feel free to ask for help while we wait for a human maintainer.

To ensure that knowledge base files are completely removed from the "docker" directory under the "volumes" section when you delete them in Dify version 0.6.9, you need to manually delete the corresponding files from the mounted volume directory on the host machine. The relevant volume for storing user files is defined in the docker-compose.yaml file as follows:

volumes:
  # Mount the storage directory to the container, for storing user files.
  - ./volumes/app/storage:/app/api/storage

This means that the files are stored in the ./volumes/app/storage directory on your host machine. To completely remove the knowledge base files, you should delete the files from this directory.

Here is a step-by-step guide:

  1. Navigate to the volumes/app/storage directory on your host machine.
  2. Identify and delete the specific knowledge base files you want to remove.

For example, you can use the following command in a Unix-based system to delete a specific file:

rm ./volumes/app/storage/path/to/your/knowledge_base_file

Or to delete all files in the storage directory:

rm -rf ./volumes/app/storage/*

Make sure to replace path/to/your/knowledge_base_file with the actual path to the file you want to delete [1].

To continue talking to Dosu, mention @dosu.

@laipz8200 laipz8200 removed their assignment Jun 25, 2024
@JohnJyong
Copy link
Contributor

mark it to the feature list

@JohnJyong
Copy link
Contributor

@zyc130130 it has fixed, pr below:
#5882

@JohnJyong JohnJyong linked a pull request Jul 2, 2024 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
3 participants