mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 03:45:06 +03:00
34 lines
633 B
Plaintext
34 lines
633 B
Plaintext
---
|
|
id: delete
|
|
title: 'Delete data: delete()'
|
|
slug: /delete
|
|
custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs'
|
|
import TabItem from '@theme/TabItem'
|
|
|
|
Performs a DELETE on the table.
|
|
|
|
```dart
|
|
final data = await supabase
|
|
.from('cities')
|
|
.delete()
|
|
.match({ 'id': 666 });
|
|
```
|
|
|
|
## Notes
|
|
|
|
- `delete()` should always be combined with [Filters](/docs/reference/dart/using-filters) to target the item(s) you wish to delete.
|
|
|
|
## Examples
|
|
|
|
### Delete records
|
|
|
|
```dart
|
|
final data = await supabase
|
|
.from('cities')
|
|
.delete()
|
|
.match({ 'id': 666 });
|
|
```
|