Delete data: delete()
Performs a DELETE on the table.
- JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.delete()
.match({ id: 666 })
Notes
delete()
should always be combined with Filters to target the item(s) you wish to delete.
Examples
Delete records
- JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.delete()
.match({ id: 666 })