delete method

PostgrestFilterBuilder delete({
  1. ReturningOption returning = ReturningOption.representation,
})

Performs a DELETE on the table.

By default the deleted record(s) will be returned. Set returning to minimal if you don't need this value.

postgrest.from('messages').delete().eq('message', 'foo')

Implementation

PostgrestFilterBuilder delete({
  ReturningOption returning = ReturningOption.representation,
}) {
  method = 'DELETE';
  headers['Prefer'] = 'return=${returning.name()}';
  return PostgrestFilterBuilder(this);
}