Delete data: delete()

Performs a DELETE on the table.

1final data = await supabase
2  .from('cities')
3  .delete()
4  .match({ 'id': 666 });

Notes#

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

Examples#

Delete records#

1final data = await supabase
2  .from('cities')
3  .delete()
4  .match({ 'id': 666 });