---
id: delete
title: "Delete data: delete()"
slug: delete
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
import TabsPanel from '@theme/TabsPanel';
Performs a DELETE on the table.
```js
const { data, error } = await supabase
.from('cities')
.delete()
.match({ id: 666 })
```
## Parameters
-
__namedParameters
required
object
No description provided.
Properties
-
returning
required
minimal | representation
If `true`, return the deleted row(s) in the response.
-
count
required
null | exact | planned | estimated
Count algorithm to use to count rows in a table.
## Notes
- `delete()` should always be combined with [filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to delete.
- If you use `delete()` with filters and you have
[RLS](/docs/learn/auth-deep-dive/auth-row-level-security) enabled, only
rows visible through `SELECT` policies are deleted. Note that by default
no rows are visible, so you need at least one `SELECT`/`ALL` policy that
makes the rows visible.
## Examples
### Delete records
```js
const { data, error } = await supabase
.from('cities')
.delete()
.match({ id: 666 })
```