Performs a DELETE on the table.
Delete() should always be combined with Filters to target the item(s) you wish to delete.Delete() returns the deleted rows in ModeledResponse<T>.Models. A delete blocked by an RLS policy, or one that matches no rows, is not an error — it succeeds with an empty Models list.await supabase
.From<City>()
.Where(x => x.Id == 342)
.Delete();
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.
}