Issue with UploadThing

I'll start saying that uploadThing is 🔥 I'm trying to add a cron job to delete all unlinked images. I'm using utapi.listFiles() and I see more images than what I see on the dashboard. I'm trying to use those fileKeys to delete the unlinked ones, i get a success:true answer but I can still see those files on the dashboard. Are you aware of a problem or do you think i'm doing something wrong?
1 Reply
IMESSE
IMESSEOP•16mo ago
@markr found the problem! It was caused by Next caching the fetch, this canary( pnpm add [email protected] ) fixes it!
Want results from more Discord servers?
Add your server