© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
3 replies
Kingcrabbe

Storage usage limits persist after deleting files via SQL

storage
Even though I deleted a folder inside a bucket, I am still receiving "Usage Limit Exceeded" errors. When I look in the bucket, the folder and files are no longer visible. However, the files (replays) are still viewable on my application dashboard, even though I have deleted them. I performed the deletion using an SQL query because attempting to delete the folder via the UI resulted in a "too many operations" error.

Here is the query I used:

DELETE FROM storage.objects
WHERE bucket_id = 'session-replays'
AND name LIKE 'replays/
userid
userid
/%';

Is there a delay in usage metric updates, or did this query fail to clean up the actual storage bytes?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deleting files from storage via CRON
SupabaseSSupabase / help-and-questions
4y ago
Storage usage not updating after deleting all files Size not reset
SupabaseSSupabase / help-and-questions
2mo ago
Exceeding Egress usage limits
SupabaseSSupabase / help-and-questions
2w ago
Exceed Usage limits v2
SupabaseSSupabase / help-and-questions
3y ago