https://discord.gg/botpress logo
Automatically deleting "File Storage" when a conve...
# 🤝help
l
I'm an extremely new user to botpress. I'm making a bot where the user uploads a PDF, then the bot extracts information and tells the user something based on it. While trying to get this set up I was notified i'm nearing the "File Storage" limit. It looks like any files uploaded by the user are stored for 48 hours. At no point will the bot need to access a file from a previous session. Is there a way to either have the bot not store uploaded files, or have it delete any uploaded files when the conversation ends? As I'm using an "Autonomous Node" I don't know that the workflow ever hits the "End" node, so I don't see an easy way to have a workflow trigger when "end" happens, nor do I see an easy way to have it get the ID of any files to use the "delete file" api
p
If you want the files never to be stored, what a user needs to pass as input is a link and it can be analyzed via the web search card without it ever being stored. If you prefer to give the file upload option to your users, then I would suggest adding a transition card to your autonomous node, so the end of the conversation can be identified and then using the delete file api within an execute code card.
l
Ahh, that makes sense! Thank you
2 Views