#Delete all files
16 messages · Page 1 of 1 (latest)
Thanks for posting in #1088161997662724167.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's #1228095053885476985 channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Hi @mossy elk check out these two threads
https://discord.com/channels/1019350475847499849/1137212457211936808
and https://discord.com/channels/1019350475847499849/1150591587798233169
hmm yeah I think adding a way to get a list of all id's associated with your project to help find orphaned images would be nice
because I had a bug in my code that forgot to delete some images
but now I have like 1,000 images I have to manually go through and check if they have a corresponding convex entry
this is just on dev, but if this was prod and I had real users, idk what I'd even do
like a ctx.storage.paginate or something
Yeah this has come up a few times. We have some ideas but haven't had a chance to prioritize them yet. Thanks for the reminder.
can you do ctx.db.system.query("_storage").paginate(opts) ?
You can also delete all stored files transactionally with a carefully constructed npx convex import, lmk if you want tips on that 🙂
(https://docs.convex.dev/database/advanced/system-tables for the pagination)
@mossy elk is this what you were looking for?