#Convex storage garbage collection

2 messages · Page 1 of 1 (latest)

craggy sparrowBOT
#

Hi @main spindle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I'm sorry, but the knowledge sources do not contain information indicating that Convex automatically removes files from storage if their IDs are not referenced in any Convex database tables. There is no mention of automatic garbage collection for unreferenced files or any specific time frame for such a process.

Instead, file deletion in Convex is a manual process. Files can be deleted using the storage.delete() function from mutations, actions, or HTTP actions, and you must explicitly provide the storage ID to delete a file. There is no documentation suggesting that Convex tracks references to storage IDs in your tables or performs automatic cleanup based on those references. You are responsible for managing and deleting unused files yourself Deleting Files.

If you need to implement automatic cleanup, you would need to build your own logic to track and remove unreferenced files.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: