Delete data: delete()
Performs a DELETE on the table.
- JavaScript
const { data, error } = await supabase
.from('cities')
.delete()
.match({ id: 666 })
Parameters
__namedParametersrequired
object
No description provided.
returningrequired
minimal
|representation
If
true
, return the deleted row(s) in the response.countrequired
null
|exact
|planned
|estimated
Count algorithm to use to count rows in a table.
Properties
Notes
delete()
should always be combined with Filters to target the item(s) you wish to delete.
Examples
Delete records
- JavaScript
const { data, error } = await supabase
.from('cities')
.delete()
.match({ id: 666 })