Skip to main content

Delete data: delete()

Performs a DELETE on the table.

final res = await supabase
.from('cities')
.delete()
.match({ 'id': 666 })
.execute();

Notes#

TODO update link to dart

  • delete() should always be combined with Filters to target the item(s) you wish to delete.

Examples#

Delete records#

final res = await supabase
.from('cities')
.delete()
.match({ 'id': 666 })
.execute();