How to delete a table data at once?

how to delete all the rows in a specific table in supabase using react query
2 Replies
dys ๐Ÿ™
dys ๐Ÿ™โ€ข13mo ago
DELETE FROM table_name
แผ”ฯฯ‰ฯ‚
แผ”ฯฯ‰ฯ‚โ€ข13mo ago
cant you use a truncate <tablename>? if the table has an autoincrement field, a delete from <table> won't reset it

Did you find this page helpful?