C#: Delete data

Performs a DELETE on the table.

Examples

Delete records

await supabase
  .From<City>()
  .Where(x => x.Id == 342)
  .Delete();

Get the deleted rows

var response = await supabase
  .From<City>()
  .Where(x => x.Id == 342)
  .Delete();

if (response.Models.Count == 0)
{
    // Nothing was deleted: the row did not exist, or an RLS policy hid it.
}