https://discord.gg/botpress logo
Orphaned file
# 🤝help
a
I have deleted a bot before deleting all it's files and now they are still there and appears with a deleted bot tag. So I can't remove them. How can these be deleted?
p
You should be able to do so via the files API, here's the documentation about this: https://botpress.com/docs/api-reference/files-api/openapi/deleteFile Hope this helps!
a
I tried the files API, but it only allows me to access bot that is not deleted. The problem is that the files are linked to a bot that was already deleted.
I tried to list all bots and it showed me only the non-deleted
p
Where do you see the files? Could you provide your workspace id?
p
Have you cleared your cache recently?
a
I am not sure what you mean - where can I clear cache? I am not running my own server.
The problem that I think this is causing me is that I created a new bot and tried to build the knowledge base for it, using the same wesites to be indexed. When I do that, it shows that it is discovering all relevant pages of the sites and indexing them, but nothing is stored in the vector DB, which is causing the bot not to find any answers for queries. So, currently I switched to search knowledgebase instead of website, which is working but not so good (much slower, and brings broken links instead of the real urls of pages on the site)
p
So bot deletion works by scheduling jobs for everything that needs to be erased. On our end, I see that the file space has been cleared. Do you still see those files in your analytics, even after clearing your browser's cache? Something you could try is creating a new workspace for your new bot. Hope this helps!