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
dysbulic ๐Ÿ™
dysbulic ๐Ÿ™โ€ข5mo ago
DELETE FROM table_name
แผ”ฯฯ‰ฯ‚
cant you use a truncate <tablename>? if the table has an autoincrement field, a delete from <table> won't reset it