Supabase deleting almost all my rows in 3 database tables #38154
-
|
deleting all the rows in a couple tables from 590 rows to 17 players and then completely wipe out records in another table. I don't see any logs .. How is this possible? I don't have code to delete from these tables? This behavior started to occur when I moved code to Vercel. I have tried this with a variety of database connection url strings. The code is Next.js. DATABASE_URL="postgresql://postgres:password@db.string.supabase.co:5432/postgres" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
|
Supabase/Postgres does not delete data rows or tables. You could check the API gateway logs for DELETE. Do you have anyone else with access to your Dashboard? |
Beta Was this translation helpful? Give feedback.
-
|
It has just happened to our project today, out of a sudden most of the rows on several tables has been wiped out and our customer and raising issues for it, but the thing we haven't changed a thing in the db connection in a long time and this is the first time happening |
Beta Was this translation helpful? Give feedback.

Supabase/Postgres does not delete data rows or tables.
You could check the API gateway logs for DELETE.
There is no log for database SQL thru the ports though.
Do you have anyone else with access to your Dashboard?
Have you ever used your service_role key?
Do you have the tables protected with RLS?
Is the data missing if you use the dashboard UI with the Postgres role?
Are you Pro with backups?