Hi. How to delete all rows from table? when i try ...
# help
w
Hi. How to delete all rows from table? when i try
Copy code
js
await supabase.from('talbe_name').delete()
i got error DELETE requires a WHERE clause
s
Delete all
g
Supabase added an extension to keep people from accidentally deleting all rows by forgetting a filter. Just use a filter that will always be true. Something like .neq('id',0) or anything that will never match.
w
Thank you🥰