© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
16 replies
Hannah

Trying to delete large number of records from table, keeps timing out

I currently have a database table with 86M+ records. Many of these records are no longer needed; the data is no longer relevant, and I believe it is causing edge functions to time out because it is having trouble filtering through the data.

I am trying to delete these records, but everything I've tried times out. I've tried:

- Filtering in the table view and selecting all rows to delete
- Using the AI assistant to help me create an SQL query that will index the data, and then use another query to delete
- Migrating the data to be deleted to another table

With each of these options, I am getting time-out errors. How can I safely remove these records without running into the timeout errors?

Environment details: iOS, web (Chrome), @supabase/supabase-js@2.38.4
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

Dropping index keeps timing out
SupabaseSSupabase / help-and-questions
5mo ago
Supabase timing out
SupabaseSSupabase / help-and-questions
5mo ago
Queries timing out
SupabaseSSupabase / help-and-questions
7mo ago
Error when trying to delete user
SupabaseSSupabase / help-and-questions
8mo ago